<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span class="hs-pragma">{-# LANGUAGE Trustworthy #-}</span><span>
</span><span id="line-2"></span><span class="hs-pragma">{-# LANGUAGE CPP, NoImplicitPrelude, BangPatterns, MagicHash, UnboxedTuples #-}</span><span>
</span><span id="line-3"></span><span class="hs-pragma">{-# OPTIONS_HADDOCK not-home #-}</span><span>
</span><span id="line-4"></span><span>
</span><span id="line-5"></span><span class="hs-comment">-----------------------------------------------------------------------------</span><span>
</span><span id="line-6"></span><span class="hs-comment">-- |</span><span>
</span><span id="line-7"></span><span class="hs-comment">-- Module      :  GHC.Word</span><span>
</span><span id="line-8"></span><span class="hs-comment">-- Copyright   :  (c) The University of Glasgow, 1997-2002</span><span>
</span><span id="line-9"></span><span class="hs-comment">-- License     :  see libraries/base/LICENSE</span><span>
</span><span id="line-10"></span><span class="hs-comment">--</span><span>
</span><span id="line-11"></span><span class="hs-comment">-- Maintainer  :  cvs-ghc@haskell.org</span><span>
</span><span id="line-12"></span><span class="hs-comment">-- Stability   :  internal</span><span>
</span><span id="line-13"></span><span class="hs-comment">-- Portability :  non-portable (GHC Extensions)</span><span>
</span><span id="line-14"></span><span class="hs-comment">--</span><span>
</span><span id="line-15"></span><span class="hs-comment">-- Sized unsigned integral types: 'Word', 'Word8', 'Word16', 'Word32', and</span><span>
</span><span id="line-16"></span><span class="hs-comment">-- 'Word64'.</span><span>
</span><span id="line-17"></span><span class="hs-comment">--</span><span>
</span><span id="line-18"></span><span class="hs-comment">-----------------------------------------------------------------------------</span><span class="hs-cpp">

#include &quot;MachDeps.h&quot;
</span><span>
</span><span id="line-22"></span><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">GHC.Word</span><span> </span><span class="hs-special">(</span><span>
</span><span id="line-23"></span><span>    </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Word"><span class="hs-identifier">Word</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-identifier">Word8</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-identifier">Word16</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-identifier">Word32</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#Word64"><span class="hs-identifier">Word64</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span class="hs-special">,</span><span>
</span><span id="line-24"></span><span>
</span><span id="line-25"></span><span>    </span><span class="annot"><span class="hs-comment">-- * Shifts</span></span><span>
</span><span id="line-26"></span><span>    </span><span class="annot"><a href="GHC.Word.html#uncheckedShiftL64%23"><span class="hs-identifier">uncheckedShiftL64#</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-27"></span><span>    </span><span class="annot"><a href="GHC.Word.html#uncheckedShiftRL64%23"><span class="hs-identifier">uncheckedShiftRL64#</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-28"></span><span>
</span><span id="line-29"></span><span>    </span><span class="annot"><span class="hs-comment">-- * Byte swapping</span></span><span>
</span><span id="line-30"></span><span>    </span><span class="annot"><a href="GHC.Word.html#byteSwap16"><span class="hs-identifier">byteSwap16</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-31"></span><span>    </span><span class="annot"><a href="GHC.Word.html#byteSwap32"><span class="hs-identifier">byteSwap32</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-32"></span><span>    </span><span class="annot"><a href="GHC.Word.html#byteSwap64"><span class="hs-identifier">byteSwap64</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-33"></span><span>
</span><span id="line-34"></span><span>    </span><span class="annot"><span class="hs-comment">-- * Bit reversal</span></span><span>
</span><span id="line-35"></span><span>    </span><span class="annot"><a href="GHC.Word.html#bitReverse8"><span class="hs-identifier">bitReverse8</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-36"></span><span>    </span><span class="annot"><a href="GHC.Word.html#bitReverse16"><span class="hs-identifier">bitReverse16</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-37"></span><span>    </span><span class="annot"><a href="GHC.Word.html#bitReverse32"><span class="hs-identifier">bitReverse32</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-38"></span><span>    </span><span class="annot"><a href="GHC.Word.html#bitReverse64"><span class="hs-identifier">bitReverse64</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-39"></span><span>
</span><span id="line-40"></span><span>    </span><span class="annot"><span class="hs-comment">-- * Equality operators</span></span><span>
</span><span id="line-41"></span><span>    </span><span class="annot"><span class="hs-comment">-- | See GHC.Classes#matching_overloaded_methods_in_rules</span></span><span>
</span><span id="line-42"></span><span>    </span><span class="annot"><a href="../../ghc-prim/src/GHC.Classes.html#eqWord"><span class="hs-identifier">eqWord</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Classes.html#neWord"><span class="hs-identifier">neWord</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Classes.html#gtWord"><span class="hs-identifier">gtWord</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Classes.html#geWord"><span class="hs-identifier">geWord</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Classes.html#ltWord"><span class="hs-identifier">ltWord</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Classes.html#leWord"><span class="hs-identifier">leWord</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-43"></span><span>    </span><span class="annot"><a href="GHC.Word.html#eqWord8"><span class="hs-identifier">eqWord8</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#neWord8"><span class="hs-identifier">neWord8</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#gtWord8"><span class="hs-identifier">gtWord8</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#geWord8"><span class="hs-identifier">geWord8</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#ltWord8"><span class="hs-identifier">ltWord8</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#leWord8"><span class="hs-identifier">leWord8</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-44"></span><span>    </span><span class="annot"><a href="GHC.Word.html#eqWord16"><span class="hs-identifier">eqWord16</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#neWord16"><span class="hs-identifier">neWord16</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#gtWord16"><span class="hs-identifier">gtWord16</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#geWord16"><span class="hs-identifier">geWord16</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#ltWord16"><span class="hs-identifier">ltWord16</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#leWord16"><span class="hs-identifier">leWord16</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-45"></span><span>    </span><span class="annot"><a href="GHC.Word.html#eqWord32"><span class="hs-identifier">eqWord32</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#neWord32"><span class="hs-identifier">neWord32</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#gtWord32"><span class="hs-identifier">gtWord32</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#geWord32"><span class="hs-identifier">geWord32</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#ltWord32"><span class="hs-identifier">ltWord32</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#leWord32"><span class="hs-identifier">leWord32</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-46"></span><span>    </span><span class="annot"><a href="GHC.Word.html#eqWord64"><span class="hs-identifier">eqWord64</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#neWord64"><span class="hs-identifier">neWord64</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#gtWord64"><span class="hs-identifier">gtWord64</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#geWord64"><span class="hs-identifier">geWord64</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#ltWord64"><span class="hs-identifier">ltWord64</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#leWord64"><span class="hs-identifier">leWord64</span></a></span><span>
</span><span id="line-47"></span><span>    </span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-48"></span><span>
</span><span id="line-49"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Data.Bits.html"><span class="hs-identifier">Data.Bits</span></a></span><span>
</span><span id="line-50"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Data.Maybe.html"><span class="hs-identifier">Data.Maybe</span></a></span><span class="hs-cpp">

#if WORD_SIZE_IN_BITS &lt; 64
</span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">GHC.IntWord64</span><span class="hs-cpp">
#endif
</span><span>
</span><span id="line-56"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Base.html"><span class="hs-identifier">GHC.Base</span></a></span><span>
</span><span id="line-57"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Enum.html"><span class="hs-identifier">GHC.Enum</span></a></span><span>
</span><span id="line-58"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Num.html"><span class="hs-identifier">GHC.Num</span></a></span><span>
</span><span id="line-59"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Real.html"><span class="hs-identifier">GHC.Real</span></a></span><span>
</span><span id="line-60"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Ix.html"><span class="hs-identifier">GHC.Ix</span></a></span><span>
</span><span id="line-61"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Show.html"><span class="hs-identifier">GHC.Show</span></a></span><span>
</span><span id="line-62"></span><span>
</span><span id="line-63"></span><span class="hs-comment">------------------------------------------------------------------------</span><span>
</span><span id="line-64"></span><span class="hs-comment">-- type Word8</span><span>
</span><span id="line-65"></span><span class="hs-comment">------------------------------------------------------------------------</span><span>
</span><span id="line-66"></span><span>
</span><span id="line-67"></span><span class="hs-comment">-- Word8 is represented in the same way as Word. Operations may assume</span><span>
</span><span id="line-68"></span><span class="hs-comment">-- and must ensure that it holds only values from its logical range.</span><span>
</span><span id="line-69"></span><span>
</span><span id="line-70"></span><span class="hs-keyword">data</span><span> </span><span class="hs-pragma">{-# CTYPE</span><span> </span><span class="hs-pragma">&quot;HsWord8&quot;</span><span> </span><span class="hs-pragma">#-}</span><span> </span><span id="Word8"><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-identifier hs-var">Word8</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="W8%23"><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-var">W8#</span></a></span></span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Word%23"><span class="hs-identifier hs-type">Word#</span></a></span><span>
</span><span id="line-71"></span><span class="hs-comment">-- ^ 8-bit unsigned integer type</span><span>
</span><span id="line-72"></span><span>
</span><span id="line-73"></span><span class="hs-comment">-- See GHC.Classes#matching_overloaded_methods_in_rules</span><span>
</span><span id="line-74"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-75"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Classes.html#Eq"><span class="hs-identifier hs-type">Eq</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-identifier hs-type">Word8</span></a></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-76"></span><span>    </span><span id="local-6989586621679497410"><span class="annot"><span class="annottext">== :: Word8 -&gt; Word8 -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%3D%3D"><span class="hs-operator hs-var hs-var hs-var hs-var">(==)</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word8 -&gt; Word8 -&gt; Bool
</span><a href="GHC.Word.html#eqWord8"><span class="hs-identifier hs-var">eqWord8</span></a></span><span>
</span><span id="line-77"></span><span>    </span><span id="local-6989586621679497409"><span class="annot"><span class="annottext">/= :: Word8 -&gt; Word8 -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%2F%3D"><span class="hs-operator hs-var hs-var hs-var hs-var">(/=)</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word8 -&gt; Word8 -&gt; Bool
</span><a href="GHC.Word.html#neWord8"><span class="hs-identifier hs-var">neWord8</span></a></span><span>
</span><span id="line-78"></span><span>
</span><span id="line-79"></span><span class="annot"><a href="GHC.Word.html#eqWord8"><span class="hs-identifier hs-type">eqWord8</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#neWord8"><span class="hs-identifier hs-type">neWord8</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-identifier hs-type">Word8</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-identifier hs-type">Word8</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Bool"><span class="hs-identifier hs-type">Bool</span></a></span><span>
</span><span id="line-80"></span><span id="eqWord8"><span class="annot"><span class="annottext">eqWord8 :: Word8 -&gt; Word8 -&gt; Bool
</span><a href="GHC.Word.html#eqWord8"><span class="hs-identifier hs-var hs-var">eqWord8</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497407"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497407"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497406"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497406"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497407"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#eqWord%23"><span class="hs-operator hs-var">`eqWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497406"><span class="hs-identifier hs-var">y</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-81"></span><span id="neWord8"><span class="annot"><span class="annottext">neWord8 :: Word8 -&gt; Word8 -&gt; Bool
</span><a href="GHC.Word.html#neWord8"><span class="hs-identifier hs-var hs-var">neWord8</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497404"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497404"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497403"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497403"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497404"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#neWord%23"><span class="hs-operator hs-var">`neWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497403"><span class="hs-identifier hs-var">y</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-82"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">[</span><span class="hs-pragma">1</span><span class="hs-pragma">]</span><span> </span><span class="annot"><a href="GHC.Word.html#eqWord8"><span class="hs-pragma hs-type">eqWord8</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-83"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">[</span><span class="hs-pragma">1</span><span class="hs-pragma">]</span><span> </span><span class="annot"><a href="GHC.Word.html#neWord8"><span class="hs-pragma hs-type">neWord8</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-84"></span><span>
</span><span id="line-85"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-86"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679497391"><span id="local-6989586621679497393"><span id="local-6989586621679497399"><span class="annot"><a href="../../ghc-prim/src/GHC.Classes.html#Ord"><span class="hs-identifier hs-type">Ord</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-identifier hs-type">Word8</span></a></span></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-87"></span><span>    </span><span id="local-6989586621679497389"><span class="annot"><span class="annottext">&lt; :: Word8 -&gt; Word8 -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%3C"><span class="hs-operator hs-var hs-var hs-var hs-var">(&lt;)</span></a></span></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word8 -&gt; Word8 -&gt; Bool
</span><a href="GHC.Word.html#ltWord8"><span class="hs-identifier hs-var">ltWord8</span></a></span><span>
</span><span id="line-88"></span><span>    </span><span id="local-6989586621679497387"><span class="annot"><span class="annottext">&lt;= :: Word8 -&gt; Word8 -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%3C%3D"><span class="hs-operator hs-var hs-var hs-var hs-var">(&lt;=)</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word8 -&gt; Word8 -&gt; Bool
</span><a href="GHC.Word.html#leWord8"><span class="hs-identifier hs-var">leWord8</span></a></span><span>
</span><span id="line-89"></span><span>    </span><span id="local-6989586621679497385"><span class="annot"><span class="annottext">&gt;= :: Word8 -&gt; Word8 -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%3E%3D"><span class="hs-operator hs-var hs-var hs-var hs-var">(&gt;=)</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word8 -&gt; Word8 -&gt; Bool
</span><a href="GHC.Word.html#geWord8"><span class="hs-identifier hs-var">geWord8</span></a></span><span>
</span><span id="line-90"></span><span>    </span><span id="local-6989586621679497384"><span class="annot"><span class="annottext">&gt; :: Word8 -&gt; Word8 -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%3E"><span class="hs-operator hs-var hs-var hs-var hs-var">(&gt;)</span></a></span></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word8 -&gt; Word8 -&gt; Bool
</span><a href="GHC.Word.html#gtWord8"><span class="hs-identifier hs-var">gtWord8</span></a></span><span>
</span><span id="line-91"></span><span>
</span><span id="line-92"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">[</span><span class="hs-pragma">1</span><span class="hs-pragma">]</span><span> </span><span class="annot"><a href="GHC.Word.html#gtWord8"><span class="hs-pragma hs-type">gtWord8</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-93"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">[</span><span class="hs-pragma">1</span><span class="hs-pragma">]</span><span> </span><span class="annot"><a href="GHC.Word.html#geWord8"><span class="hs-pragma hs-type">geWord8</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-94"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">[</span><span class="hs-pragma">1</span><span class="hs-pragma">]</span><span> </span><span class="annot"><a href="GHC.Word.html#ltWord8"><span class="hs-pragma hs-type">ltWord8</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-95"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">[</span><span class="hs-pragma">1</span><span class="hs-pragma">]</span><span> </span><span class="annot"><a href="GHC.Word.html#leWord8"><span class="hs-pragma hs-type">leWord8</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-96"></span><span class="annot"><a href="GHC.Word.html#gtWord8"><span class="hs-identifier hs-type">gtWord8</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#geWord8"><span class="hs-identifier hs-type">geWord8</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#ltWord8"><span class="hs-identifier hs-type">ltWord8</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#leWord8"><span class="hs-identifier hs-type">leWord8</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-identifier hs-type">Word8</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-identifier hs-type">Word8</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Bool"><span class="hs-identifier hs-type">Bool</span></a></span><span>
</span><span id="line-97"></span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497382"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497382"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span id="gtWord8"><span class="annot"><span class="annottext">gtWord8 :: Word8 -&gt; Word8 -&gt; Bool
</span><a href="GHC.Word.html#gtWord8"><span class="hs-operator hs-var hs-var">`gtWord8`</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497381"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497381"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497382"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#gtWord%23"><span class="hs-operator hs-var">`gtWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497381"><span class="hs-identifier hs-var">y</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-98"></span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497380"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497380"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span id="geWord8"><span class="annot"><span class="annottext">geWord8 :: Word8 -&gt; Word8 -&gt; Bool
</span><a href="GHC.Word.html#geWord8"><span class="hs-operator hs-var hs-var">`geWord8`</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497379"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497379"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497380"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#geWord%23"><span class="hs-operator hs-var">`geWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497379"><span class="hs-identifier hs-var">y</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-99"></span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497378"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497378"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span id="ltWord8"><span class="annot"><span class="annottext">ltWord8 :: Word8 -&gt; Word8 -&gt; Bool
</span><a href="GHC.Word.html#ltWord8"><span class="hs-operator hs-var hs-var">`ltWord8`</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497377"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497377"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497378"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#ltWord%23"><span class="hs-operator hs-var">`ltWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497377"><span class="hs-identifier hs-var">y</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-100"></span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497376"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497376"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span id="leWord8"><span class="annot"><span class="annottext">leWord8 :: Word8 -&gt; Word8 -&gt; Bool
</span><a href="GHC.Word.html#leWord8"><span class="hs-operator hs-var hs-var">`leWord8`</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497375"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497375"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497376"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#leWord%23"><span class="hs-operator hs-var">`leWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497375"><span class="hs-identifier hs-var">y</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-101"></span><span>
</span><span id="line-102"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-103"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679497370"><span id="local-6989586621679497372"><span class="annot"><a href="GHC.Show.html#Show"><span class="hs-identifier hs-type">Show</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-identifier hs-type">Word8</span></a></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-104"></span><span>    </span><span id="local-6989586621679497362"><span class="annot"><span class="annottext">showsPrec :: Int -&gt; Word8 -&gt; ShowS
</span><a href="GHC.Show.html#showsPrec"><span class="hs-identifier hs-var hs-var hs-var hs-var">showsPrec</span></a></span></span><span> </span><span id="local-6989586621679497360"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679497360"><span class="hs-identifier hs-var">p</span></a></span></span><span> </span><span id="local-6989586621679497359"><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497359"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; ShowS
forall a. Show a =&gt; Int -&gt; a -&gt; ShowS
</span><a href="GHC.Show.html#showsPrec"><span class="hs-identifier hs-var">showsPrec</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679497360"><span class="hs-identifier hs-var">p</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word8 -&gt; Int
forall a b. (Integral a, Num b) =&gt; a -&gt; b
</span><a href="GHC.Real.html#fromIntegral"><span class="hs-identifier hs-var">fromIntegral</span></a></span><span> </span><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497359"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-identifier hs-type">Int</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-105"></span><span>
</span><span id="line-106"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-107"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="GHC.Num.html#Num"><span class="hs-identifier hs-type">Num</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-identifier hs-type">Word8</span></a></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-108"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497349"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497349"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679497348"><span class="annot"><span class="annottext">+ :: Word8 -&gt; Word8 -&gt; Word8
</span><a href="GHC.Num.html#%2B"><span class="hs-operator hs-var hs-var hs-var hs-var">+</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497346"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497346"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word8
</span><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-var">W8#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#narrow8Word%23"><span class="hs-identifier hs-var">narrow8Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497349"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#plusWord%23"><span class="hs-operator hs-var">`plusWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497346"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-109"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497345"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497345"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679497344"><span class="annot"><span class="annottext">- :: Word8 -&gt; Word8 -&gt; Word8
</span><a href="GHC.Num.html#-"><span class="hs-glyph hs-var hs-var hs-var hs-var">-</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497343"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497343"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word8
</span><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-var">W8#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#narrow8Word%23"><span class="hs-identifier hs-var">narrow8Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497345"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#minusWord%23"><span class="hs-operator hs-var">`minusWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497343"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-110"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497342"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497342"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679497341"><span class="annot"><span class="annottext">* :: Word8 -&gt; Word8 -&gt; Word8
</span><a href="GHC.Num.html#%2A"><span class="hs-operator hs-var hs-var hs-var hs-var">*</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497339"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497339"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word8
</span><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-var">W8#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#narrow8Word%23"><span class="hs-identifier hs-var">narrow8Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497342"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#timesWord%23"><span class="hs-operator hs-var">`timesWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497339"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-111"></span><span>    </span><span id="local-6989586621679497338"><span class="annot"><span class="annottext">negate :: Word8 -&gt; Word8
</span><a href="GHC.Num.html#negate"><span class="hs-identifier hs-var hs-var hs-var hs-var">negate</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497337"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497337"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word8
</span><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-var">W8#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#narrow8Word%23"><span class="hs-identifier hs-var">narrow8Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#int2Word%23"><span class="hs-identifier hs-var">int2Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#negateInt%23"><span class="hs-identifier hs-var">negateInt#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#word2Int%23"><span class="hs-identifier hs-var">word2Int#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497337"><span class="hs-identifier hs-var">x#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-112"></span><span>    </span><span id="local-6989586621679497336"><span class="annot"><span class="annottext">abs :: Word8 -&gt; Word8
</span><a href="GHC.Num.html#abs"><span class="hs-identifier hs-var hs-var hs-var hs-var">abs</span></a></span></span><span> </span><span id="local-6989586621679497334"><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497334"><span class="hs-identifier hs-var">x</span></a></span></span><span>                  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497334"><span class="hs-identifier hs-var">x</span></a></span><span>
</span><span id="line-113"></span><span>    </span><span id="local-6989586621679497329"><span class="annot"><span class="annottext">signum :: Word8 -&gt; Word8
</span><a href="GHC.Num.html#signum"><span class="hs-identifier hs-var hs-var hs-var hs-var">signum</span></a></span></span><span> </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-number">0</span></span><span>               </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-number">0</span></span><span>
</span><span id="line-114"></span><span>    </span><span class="annot"><a href="GHC.Num.html#signum"><span class="hs-identifier hs-var">signum</span></a></span><span> </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-identifier">_</span></span><span>               </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-number">1</span></span><span>
</span><span id="line-115"></span><span>    </span><span id="local-6989586621679497327"><span class="annot"><span class="annottext">fromInteger :: Integer -&gt; Word8
</span><a href="GHC.Num.html#fromInteger"><span class="hs-identifier hs-var hs-var hs-var hs-var">fromInteger</span></a></span></span><span> </span><span id="local-6989586621679497326"><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679497326"><span class="hs-identifier hs-var">i</span></a></span></span><span>          </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word8
</span><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-var">W8#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#narrow8Word%23"><span class="hs-identifier hs-var">narrow8Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Integer -&gt; Word#
</span><a href="../../ghc-bignum/src/GHC.Num.Integer.html#integerToWord%23"><span class="hs-identifier hs-var">integerToWord#</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679497326"><span class="hs-identifier hs-var">i</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-116"></span><span>
</span><span id="line-117"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-118"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="GHC.Real.html#Real"><span class="hs-identifier hs-type">Real</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-identifier hs-type">Word8</span></a></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-119"></span><span>    </span><span id="local-6989586621679497313"><span class="annot"><span class="annottext">toRational :: Word8 -&gt; Rational
</span><a href="GHC.Real.html#toRational"><span class="hs-identifier hs-var hs-var hs-var hs-var">toRational</span></a></span></span><span> </span><span id="local-6989586621679497312"><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497312"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word8 -&gt; Integer
forall a. Integral a =&gt; a -&gt; Integer
</span><a href="GHC.Real.html#toInteger"><span class="hs-identifier hs-var">toInteger</span></a></span><span> </span><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497312"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Integer -&gt; Integer -&gt; Rational
forall a. Integral a =&gt; a -&gt; a -&gt; Ratio a
</span><a href="GHC.Real.html#%25"><span class="hs-operator hs-var">%</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><span class="hs-number">1</span></span><span>
</span><span id="line-120"></span><span>
</span><span id="line-121"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-122"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679497301"><span id="local-6989586621679497303"><span class="annot"><a href="GHC.Enum.html#Enum"><span class="hs-identifier hs-type">Enum</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-identifier hs-type">Word8</span></a></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-123"></span><span>    </span><span id="local-6989586621679497294"><span class="annot"><span class="annottext">succ :: Word8 -&gt; Word8
</span><a href="GHC.Enum.html#succ"><span class="hs-identifier hs-var hs-var hs-var hs-var">succ</span></a></span></span><span> </span><span id="local-6989586621679497292"><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497292"><span class="hs-identifier hs-var">x</span></a></span></span><span>
</span><span id="line-124"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497292"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word8 -&gt; Word8 -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%2F%3D"><span class="hs-operator hs-var">/=</span></a></span><span> </span><span class="annot"><span class="annottext">Word8
forall a. Bounded a =&gt; a
</span><a href="GHC.Enum.html#maxBound"><span class="hs-identifier hs-var">maxBound</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497292"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word8 -&gt; Word8 -&gt; Word8
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="GHC.Num.html#%2B"><span class="hs-operator hs-var">+</span></a></span><span> </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-number">1</span></span><span>
</span><span id="line-125"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; Word8
forall a. String -&gt; a
</span><a href="GHC.Enum.html#succError"><span class="hs-identifier hs-var">succError</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;Word8&quot;</span></span><span>
</span><span id="line-126"></span><span>    </span><span id="local-6989586621679497285"><span class="annot"><span class="annottext">pred :: Word8 -&gt; Word8
</span><a href="GHC.Enum.html#pred"><span class="hs-identifier hs-var hs-var hs-var hs-var">pred</span></a></span></span><span> </span><span id="local-6989586621679497283"><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497283"><span class="hs-identifier hs-var">x</span></a></span></span><span>
</span><span id="line-127"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497283"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word8 -&gt; Word8 -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%2F%3D"><span class="hs-operator hs-var">/=</span></a></span><span> </span><span class="annot"><span class="annottext">Word8
forall a. Bounded a =&gt; a
</span><a href="GHC.Enum.html#minBound"><span class="hs-identifier hs-var">minBound</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497283"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word8 -&gt; Word8 -&gt; Word8
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="GHC.Num.html#-"><span class="hs-glyph hs-var">-</span></a></span><span> </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-number">1</span></span><span>
</span><span id="line-128"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; Word8
forall a. String -&gt; a
</span><a href="GHC.Enum.html#predError"><span class="hs-identifier hs-var">predError</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;Word8&quot;</span></span><span>
</span><span id="line-129"></span><span>    </span><span id="local-6989586621679497270"><span class="annot"><span class="annottext">toEnum :: Int -&gt; Word8
</span><a href="GHC.Enum.html#toEnum"><span class="hs-identifier hs-var hs-var hs-var hs-var">toEnum</span></a></span></span><span> </span><span id="local-6989586621679497268"><span class="annot"><span class="annottext">i :: Int
</span><a href="#local-6989586621679497268"><span class="hs-identifier hs-var">i</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-type">I#</span></a></span><span> </span><span id="local-6989586621679497267"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679497267"><span class="hs-identifier hs-var">i#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-130"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679497268"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%3E%3D"><span class="hs-operator hs-var">&gt;=</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">0</span></span><span> </span><span class="annot"><span class="annottext">Bool -&gt; Bool -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%26%26"><span class="hs-operator hs-var">&amp;&amp;</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679497268"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%3C%3D"><span class="hs-operator hs-var">&lt;=</span></a></span><span> </span><span class="annot"><span class="annottext">Word8 -&gt; Int
forall a b. (Integral a, Num b) =&gt; a -&gt; b
</span><a href="GHC.Real.html#fromIntegral"><span class="hs-identifier hs-var">fromIntegral</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word8
forall a. Bounded a =&gt; a
</span><a href="GHC.Enum.html#maxBound"><span class="hs-identifier hs-var">maxBound</span></a></span><span class="hs-glyph">::</span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-identifier hs-type">Word8</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-131"></span><span>                        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word8
</span><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-var">W8#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#int2Word%23"><span class="hs-identifier hs-var">int2Word#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679497267"><span class="hs-identifier hs-var">i#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-132"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; Int -&gt; (Word8, Word8) -&gt; Word8
forall a b. Show a =&gt; String -&gt; Int -&gt; (a, a) -&gt; b
</span><a href="GHC.Enum.html#toEnumError"><span class="hs-identifier hs-var">toEnumError</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;Word8&quot;</span></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679497268"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word8
forall a. Bounded a =&gt; a
</span><a href="GHC.Enum.html#minBound"><span class="hs-identifier hs-var">minBound</span></a></span><span class="hs-glyph">::</span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-identifier hs-type">Word8</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">Word8
forall a. Bounded a =&gt; a
</span><a href="GHC.Enum.html#maxBound"><span class="hs-identifier hs-var">maxBound</span></a></span><span class="hs-glyph">::</span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-identifier hs-type">Word8</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-133"></span><span>    </span><span id="local-6989586621679497264"><span class="annot"><span class="annottext">fromEnum :: Word8 -&gt; Int
</span><a href="GHC.Enum.html#fromEnum"><span class="hs-identifier hs-var hs-var hs-var hs-var">fromEnum</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497262"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497262"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int
</span><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-var">I#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#word2Int%23"><span class="hs-identifier hs-var">word2Int#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497262"><span class="hs-identifier hs-var">x#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-134"></span><span>    </span><span class="hs-comment">-- See Note [Stable Unfolding for list producers] in GHC.Enum</span><span>
</span><span id="line-135"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="GHC.Enum.html#enumFrom"><span class="hs-pragma hs-type">enumFrom</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-136"></span><span>    </span><span id="local-6989586621679497259"><span class="annot"><span class="annottext">enumFrom :: Word8 -&gt; [Word8]
</span><a href="GHC.Enum.html#enumFrom"><span class="hs-identifier hs-var hs-var hs-var hs-var">enumFrom</span></a></span></span><span>            </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word8 -&gt; [Word8]
forall a. (Enum a, Bounded a) =&gt; a -&gt; [a]
</span><a href="GHC.Enum.html#boundedEnumFrom"><span class="hs-identifier hs-var">boundedEnumFrom</span></a></span><span>
</span><span id="line-137"></span><span>    </span><span class="hs-comment">-- See Note [Stable Unfolding for list producers] in GHC.Enum</span><span>
</span><span id="line-138"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="GHC.Enum.html#enumFromThen"><span class="hs-pragma hs-type">enumFromThen</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-139"></span><span>    </span><span id="local-6989586621679497255"><span class="annot"><span class="annottext">enumFromThen :: Word8 -&gt; Word8 -&gt; [Word8]
</span><a href="GHC.Enum.html#enumFromThen"><span class="hs-identifier hs-var hs-var hs-var hs-var">enumFromThen</span></a></span></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word8 -&gt; Word8 -&gt; [Word8]
forall a. (Enum a, Bounded a) =&gt; a -&gt; a -&gt; [a]
</span><a href="GHC.Enum.html#boundedEnumFromThen"><span class="hs-identifier hs-var">boundedEnumFromThen</span></a></span><span>
</span><span id="line-140"></span><span>
</span><span id="line-141"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-142"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="GHC.Real.html#Integral"><span class="hs-identifier hs-type">Integral</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-identifier hs-type">Word8</span></a></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-143"></span><span>    </span><span id="local-6989586621679497239"><span class="annot"><span class="annottext">quot :: Word8 -&gt; Word8 -&gt; Word8
</span><a href="GHC.Real.html#quot"><span class="hs-identifier hs-var hs-var hs-var hs-var">quot</span></a></span></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497237"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497237"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679497236"><span class="annot"><span class="annottext">y :: Word8
</span><a href="#local-6989586621679497236"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497235"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497235"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-144"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497236"><span class="hs-identifier hs-var">y</span></a></span><span> </span><span class="annot"><span class="annottext">Word8 -&gt; Word8 -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%2F%3D"><span class="hs-operator hs-var">/=</span></a></span><span> </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-number">0</span></span><span>                  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word8
</span><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-var">W8#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497237"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#quotWord%23"><span class="hs-operator hs-var">`quotWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497235"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-145"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>               </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word8
forall a. a
</span><a href="GHC.Real.html#divZeroError"><span class="hs-identifier hs-var">divZeroError</span></a></span><span>
</span><span id="line-146"></span><span>    </span><span id="local-6989586621679497231"><span class="annot"><span class="annottext">rem :: Word8 -&gt; Word8 -&gt; Word8
</span><a href="GHC.Real.html#rem"><span class="hs-identifier hs-var hs-var hs-var hs-var">rem</span></a></span></span><span>     </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497229"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497229"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679497228"><span class="annot"><span class="annottext">y :: Word8
</span><a href="#local-6989586621679497228"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497227"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497227"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-147"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497228"><span class="hs-identifier hs-var">y</span></a></span><span> </span><span class="annot"><span class="annottext">Word8 -&gt; Word8 -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%2F%3D"><span class="hs-operator hs-var">/=</span></a></span><span> </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-number">0</span></span><span>                  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word8
</span><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-var">W8#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497229"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#remWord%23"><span class="hs-operator hs-var">`remWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497227"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-148"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>               </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word8
forall a. a
</span><a href="GHC.Real.html#divZeroError"><span class="hs-identifier hs-var">divZeroError</span></a></span><span>
</span><span id="line-149"></span><span>    </span><span id="local-6989586621679497224"><span class="annot"><span class="annottext">div :: Word8 -&gt; Word8 -&gt; Word8
</span><a href="GHC.Real.html#div"><span class="hs-identifier hs-var hs-var hs-var hs-var">div</span></a></span></span><span>     </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497222"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497222"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679497221"><span class="annot"><span class="annottext">y :: Word8
</span><a href="#local-6989586621679497221"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497220"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497220"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-150"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497221"><span class="hs-identifier hs-var">y</span></a></span><span> </span><span class="annot"><span class="annottext">Word8 -&gt; Word8 -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%2F%3D"><span class="hs-operator hs-var">/=</span></a></span><span> </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-number">0</span></span><span>                  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word8
</span><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-var">W8#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497222"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#quotWord%23"><span class="hs-operator hs-var">`quotWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497220"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-151"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>               </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word8
forall a. a
</span><a href="GHC.Real.html#divZeroError"><span class="hs-identifier hs-var">divZeroError</span></a></span><span>
</span><span id="line-152"></span><span>    </span><span id="local-6989586621679497217"><span class="annot"><span class="annottext">mod :: Word8 -&gt; Word8 -&gt; Word8
</span><a href="GHC.Real.html#mod"><span class="hs-identifier hs-var hs-var hs-var hs-var">mod</span></a></span></span><span>     </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497215"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497215"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679497214"><span class="annot"><span class="annottext">y :: Word8
</span><a href="#local-6989586621679497214"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497213"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497213"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-153"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497214"><span class="hs-identifier hs-var">y</span></a></span><span> </span><span class="annot"><span class="annottext">Word8 -&gt; Word8 -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%2F%3D"><span class="hs-operator hs-var">/=</span></a></span><span> </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-number">0</span></span><span>                  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word8
</span><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-var">W8#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497215"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#remWord%23"><span class="hs-operator hs-var">`remWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497213"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-154"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>               </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word8
forall a. a
</span><a href="GHC.Real.html#divZeroError"><span class="hs-identifier hs-var">divZeroError</span></a></span><span>
</span><span id="line-155"></span><span>    </span><span id="local-6989586621679497210"><span class="annot"><span class="annottext">quotRem :: Word8 -&gt; Word8 -&gt; (Word8, Word8)
</span><a href="GHC.Real.html#quotRem"><span class="hs-identifier hs-var hs-var hs-var hs-var">quotRem</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497208"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497208"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679497207"><span class="annot"><span class="annottext">y :: Word8
</span><a href="#local-6989586621679497207"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497206"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497206"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-156"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497207"><span class="hs-identifier hs-var">y</span></a></span><span> </span><span class="annot"><span class="annottext">Word8 -&gt; Word8 -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%2F%3D"><span class="hs-operator hs-var">/=</span></a></span><span> </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-number">0</span></span><span>                  </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497208"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; (# Word#, Word# #)
</span><a href="../../ghc-prim/src/GHC.Prim.html#quotRemWord%23"><span class="hs-operator hs-var">`quotRemWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497206"><span class="hs-identifier hs-var">y#</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-157"></span><span>                                    </span><span class="hs-special">(#</span><span> </span><span id="local-6989586621679497205"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497205"><span class="hs-identifier hs-var">q</span></a></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621679497204"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497204"><span class="hs-identifier hs-var">r</span></a></span></span><span> </span><span class="hs-special">#)</span><span> </span><span class="hs-glyph">-&gt;</span><span>
</span><span id="line-158"></span><span>                                        </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word8
</span><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-var">W8#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497205"><span class="hs-identifier hs-var">q</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word8
</span><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-var">W8#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497204"><span class="hs-identifier hs-var">r</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-159"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>               </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(Word8, Word8)
forall a. a
</span><a href="GHC.Real.html#divZeroError"><span class="hs-identifier hs-var">divZeroError</span></a></span><span>
</span><span id="line-160"></span><span>    </span><span id="local-6989586621679497201"><span class="annot"><span class="annottext">divMod :: Word8 -&gt; Word8 -&gt; (Word8, Word8)
</span><a href="GHC.Real.html#divMod"><span class="hs-identifier hs-var hs-var hs-var hs-var">divMod</span></a></span></span><span>  </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497199"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497199"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679497198"><span class="annot"><span class="annottext">y :: Word8
</span><a href="#local-6989586621679497198"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497197"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497197"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-161"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497198"><span class="hs-identifier hs-var">y</span></a></span><span> </span><span class="annot"><span class="annottext">Word8 -&gt; Word8 -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%2F%3D"><span class="hs-operator hs-var">/=</span></a></span><span> </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-number">0</span></span><span>                  </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word8
</span><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-var">W8#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497199"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#quotWord%23"><span class="hs-operator hs-var">`quotWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497197"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word8
</span><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-var">W8#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497199"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#remWord%23"><span class="hs-operator hs-var">`remWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497197"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-162"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>               </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(Word8, Word8)
forall a. a
</span><a href="GHC.Real.html#divZeroError"><span class="hs-identifier hs-var">divZeroError</span></a></span><span>
</span><span id="line-163"></span><span>    </span><span id="local-6989586621679497196"><span class="annot"><span class="annottext">toInteger :: Word8 -&gt; Integer
</span><a href="GHC.Real.html#toInteger"><span class="hs-identifier hs-var hs-var hs-var hs-var">toInteger</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497195"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497195"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span>            </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Integer
</span><a href="../../ghc-bignum/src/GHC.Num.Integer.html#IS"><span class="hs-identifier hs-var">IS</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#word2Int%23"><span class="hs-identifier hs-var">word2Int#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497195"><span class="hs-identifier hs-var">x#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-164"></span><span>
</span><span id="line-165"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-166"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="GHC.Enum.html#Bounded"><span class="hs-identifier hs-type">Bounded</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-identifier hs-type">Word8</span></a></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-167"></span><span>    </span><span id="local-6989586621679497190"><span class="annot"><span class="annottext">minBound :: Word8
</span><a href="#local-6989586621679497190"><span class="hs-identifier hs-var hs-var hs-var hs-var">minBound</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-number">0</span></span><span>
</span><span id="line-168"></span><span>    </span><span id="local-6989586621679497188"><span class="annot"><span class="annottext">maxBound :: Word8
</span><a href="#local-6989586621679497188"><span class="hs-identifier hs-var hs-var hs-var hs-var">maxBound</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-number">0xFF</span></span><span>
</span><span id="line-169"></span><span>
</span><span id="line-170"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-171"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679497177"><span id="local-6989586621679497179"><span id="local-6989586621679497183"><span class="annot"><a href="GHC.Ix.html#Ix"><span class="hs-identifier hs-type">Ix</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-identifier hs-type">Word8</span></a></span></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-172"></span><span>    </span><span id="local-6989586621679497174"><span class="annot"><span class="annottext">range :: (Word8, Word8) -&gt; [Word8]
</span><a href="GHC.Ix.html#range"><span class="hs-identifier hs-var hs-var hs-var hs-var">range</span></a></span></span><span> </span><span class="hs-special">(</span><span id="local-6989586621679497172"><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497172"><span class="hs-identifier hs-var">m</span></a></span></span><span class="hs-special">,</span><span id="local-6989586621679497171"><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497171"><span class="hs-identifier hs-var">n</span></a></span></span><span class="hs-special">)</span><span>         </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">[</span><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497172"><span class="hs-identifier hs-var">m</span></a></span><span class="hs-glyph">..</span><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497171"><span class="hs-identifier hs-var">n</span></a></span><span class="hs-special">]</span><span>
</span><span id="line-173"></span><span>    </span><span id="local-6989586621679497167"><span class="annot"><span class="annottext">unsafeIndex :: (Word8, Word8) -&gt; Word8 -&gt; Int
</span><a href="GHC.Ix.html#unsafeIndex"><span class="hs-identifier hs-var hs-var hs-var hs-var">unsafeIndex</span></a></span></span><span> </span><span class="hs-special">(</span><span id="local-6989586621679497165"><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497165"><span class="hs-identifier hs-var">m</span></a></span></span><span class="hs-special">,</span><span class="annot"><span class="annottext">Word8
</span><span class="hs-identifier">_</span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679497164"><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497164"><span class="hs-identifier hs-var">i</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word8 -&gt; Int
forall a b. (Integral a, Num b) =&gt; a -&gt; b
</span><a href="GHC.Real.html#fromIntegral"><span class="hs-identifier hs-var">fromIntegral</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497164"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="annot"><span class="annottext">Word8 -&gt; Word8 -&gt; Word8
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="GHC.Num.html#-"><span class="hs-glyph hs-var">-</span></a></span><span> </span><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497165"><span class="hs-identifier hs-var">m</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-174"></span><span>    </span><span id="local-6989586621679497161"><span class="annot"><span class="annottext">inRange :: (Word8, Word8) -&gt; Word8 -&gt; Bool
</span><a href="GHC.Ix.html#inRange"><span class="hs-identifier hs-var hs-var hs-var hs-var">inRange</span></a></span></span><span> </span><span class="hs-special">(</span><span id="local-6989586621679497159"><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497159"><span class="hs-identifier hs-var">m</span></a></span></span><span class="hs-special">,</span><span id="local-6989586621679497158"><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497158"><span class="hs-identifier hs-var">n</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679497157"><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497157"><span class="hs-identifier hs-var">i</span></a></span></span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497159"><span class="hs-identifier hs-var">m</span></a></span><span> </span><span class="annot"><span class="annottext">Word8 -&gt; Word8 -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%3C%3D"><span class="hs-operator hs-var">&lt;=</span></a></span><span> </span><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497157"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="annot"><span class="annottext">Bool -&gt; Bool -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%26%26"><span class="hs-operator hs-var">&amp;&amp;</span></a></span><span> </span><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497157"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="annot"><span class="annottext">Word8 -&gt; Word8 -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%3C%3D"><span class="hs-operator hs-var">&lt;=</span></a></span><span> </span><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497158"><span class="hs-identifier hs-var">n</span></a></span><span>
</span><span id="line-175"></span><span>
</span><span id="line-176"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-177"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679497128"><span id="local-6989586621679497130"><span id="local-6989586621679497140"><span id="local-6989586621679497142"><span id="local-6989586621679497144"><span id="local-6989586621679497147"><span class="annot"><a href="Data.Bits.html#Bits"><span class="hs-identifier hs-type">Bits</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-identifier hs-type">Word8</span></a></span></span></span></span></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-178"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="Data.Bits.html#shift"><span class="hs-pragma hs-type">shift</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-179"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="Data.Bits.html#bit"><span class="hs-pragma hs-type">bit</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-180"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="Data.Bits.html#testBit"><span class="hs-pragma hs-type">testBit</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-181"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="Data.Bits.html#popCount"><span class="hs-pragma hs-type">popCount</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-182"></span><span>
</span><span id="line-183"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497121"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497121"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679497120"><span class="annot"><span class="annottext">.&amp;. :: Word8 -&gt; Word8 -&gt; Word8
</span><a href="Data.Bits.html#.%26."><span class="hs-operator hs-var hs-var hs-var hs-var">.&amp;.</span></a></span></span><span>   </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497118"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497118"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word8
</span><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-var">W8#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497121"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#and%23"><span class="hs-operator hs-var">`and#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497118"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-184"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497117"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497117"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679497116"><span class="annot"><span class="annottext">.|. :: Word8 -&gt; Word8 -&gt; Word8
</span><a href="Data.Bits.html#.%7C."><span class="hs-operator hs-var hs-var hs-var hs-var">.|.</span></a></span></span><span>   </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497114"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497114"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word8
</span><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-var">W8#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497117"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#or%23"><span class="hs-operator hs-var">`or#`</span></a></span><span>  </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497114"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-185"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497113"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497113"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679497112"><span class="annot"><span class="annottext">xor :: Word8 -&gt; Word8 -&gt; Word8
</span><a href="Data.Bits.html#xor"><span class="hs-operator hs-var hs-var hs-var hs-var">`xor`</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497110"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497110"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word8
</span><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-var">W8#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497113"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#xor%23"><span class="hs-operator hs-var">`xor#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497110"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-186"></span><span>    </span><span id="local-6989586621679497109"><span class="annot"><span class="annottext">complement :: Word8 -&gt; Word8
</span><a href="Data.Bits.html#complement"><span class="hs-identifier hs-var hs-var hs-var hs-var">complement</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497107"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497107"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span>       </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word8
</span><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-var">W8#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497107"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#xor%23"><span class="hs-operator hs-var">`xor#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497106"><span class="hs-identifier hs-var">mb#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-187"></span><span>        </span><span class="hs-keyword">where</span><span> </span><span class="hs-glyph">!</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497106"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497106"><span class="hs-identifier hs-var">mb#</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word8
forall a. Bounded a =&gt; a
</span><a href="GHC.Enum.html#maxBound"><span class="hs-identifier hs-var">maxBound</span></a></span><span>
</span><span id="line-188"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497104"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497104"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679497103"><span class="annot"><span class="annottext">shift :: Word8 -&gt; Int -&gt; Word8
</span><a href="#local-6989586621679497103"><span class="hs-operator hs-var hs-var hs-var hs-var">`shift`</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-type">I#</span></a></span><span> </span><span id="local-6989586621679497102"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679497102"><span class="hs-identifier hs-var">i#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-189"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679497102"><span class="hs-identifier hs-var">i#</span></a></span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#%3E%3D%23"><span class="hs-operator hs-var">&gt;=#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><span class="hs-number">0#</span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word8
</span><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-var">W8#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#narrow8Word%23"><span class="hs-identifier hs-var">narrow8Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497104"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="GHC.Base.html#shiftL%23"><span class="hs-operator hs-var">`shiftL#`</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679497102"><span class="hs-identifier hs-var">i#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-190"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>           </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word8
</span><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-var">W8#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497104"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="GHC.Base.html#shiftRL%23"><span class="hs-operator hs-var">`shiftRL#`</span></a></span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#negateInt%23"><span class="hs-identifier hs-var">negateInt#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679497102"><span class="hs-identifier hs-var">i#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-191"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497099"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497099"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679497098"><span class="annot"><span class="annottext">shiftL :: Word8 -&gt; Int -&gt; Word8
</span><a href="Data.Bits.html#shiftL"><span class="hs-operator hs-var hs-var hs-var hs-var">`shiftL`</span></a></span></span><span>       </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-type">I#</span></a></span><span> </span><span id="local-6989586621679497096"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679497096"><span class="hs-identifier hs-var">i#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-192"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679497096"><span class="hs-identifier hs-var">i#</span></a></span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#%3E%3D%23"><span class="hs-operator hs-var">&gt;=#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><span class="hs-number">0#</span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word8
</span><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-var">W8#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#narrow8Word%23"><span class="hs-identifier hs-var">narrow8Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497099"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="GHC.Base.html#shiftL%23"><span class="hs-operator hs-var">`shiftL#`</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679497096"><span class="hs-identifier hs-var">i#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-193"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>           </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word8
forall a. a
</span><a href="GHC.Real.html#overflowError"><span class="hs-identifier hs-var">overflowError</span></a></span><span>
</span><span id="line-194"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497094"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497094"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679497093"><span class="annot"><span class="annottext">unsafeShiftL :: Word8 -&gt; Int -&gt; Word8
</span><a href="Data.Bits.html#unsafeShiftL"><span class="hs-operator hs-var hs-var hs-var hs-var">`unsafeShiftL`</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-type">I#</span></a></span><span> </span><span id="local-6989586621679497091"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679497091"><span class="hs-identifier hs-var">i#</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-195"></span><span>        </span><span class="annot"><span class="annottext">Word# -&gt; Word8
</span><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-var">W8#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#narrow8Word%23"><span class="hs-identifier hs-var">narrow8Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497094"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#uncheckedShiftL%23"><span class="hs-operator hs-var">`uncheckedShiftL#`</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679497091"><span class="hs-identifier hs-var">i#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-196"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497090"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497090"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679497089"><span class="annot"><span class="annottext">shiftR :: Word8 -&gt; Int -&gt; Word8
</span><a href="Data.Bits.html#shiftR"><span class="hs-operator hs-var hs-var hs-var hs-var">`shiftR`</span></a></span></span><span>       </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-type">I#</span></a></span><span> </span><span id="local-6989586621679497087"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679497087"><span class="hs-identifier hs-var">i#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-197"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679497087"><span class="hs-identifier hs-var">i#</span></a></span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#%3E%3D%23"><span class="hs-operator hs-var">&gt;=#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><span class="hs-number">0#</span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word8
</span><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-var">W8#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497090"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="GHC.Base.html#shiftRL%23"><span class="hs-operator hs-var">`shiftRL#`</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679497087"><span class="hs-identifier hs-var">i#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-198"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>           </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word8
forall a. a
</span><a href="GHC.Real.html#overflowError"><span class="hs-identifier hs-var">overflowError</span></a></span><span>
</span><span id="line-199"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497086"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497086"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679497085"><span class="annot"><span class="annottext">unsafeShiftR :: Word8 -&gt; Int -&gt; Word8
</span><a href="Data.Bits.html#unsafeShiftR"><span class="hs-operator hs-var hs-var hs-var hs-var">`unsafeShiftR`</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-type">I#</span></a></span><span> </span><span id="local-6989586621679497083"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679497083"><span class="hs-identifier hs-var">i#</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word8
</span><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-var">W8#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497086"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#uncheckedShiftRL%23"><span class="hs-operator hs-var">`uncheckedShiftRL#`</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679497083"><span class="hs-identifier hs-var">i#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-200"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497082"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497082"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679497081"><span class="annot"><span class="annottext">rotate :: Word8 -&gt; Int -&gt; Word8
</span><a href="Data.Bits.html#rotate"><span class="hs-operator hs-var hs-var hs-var hs-var">`rotate`</span></a></span></span><span>       </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-type">I#</span></a></span><span> </span><span id="local-6989586621679497079"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679497079"><span class="hs-identifier hs-var">i#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-201"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679497078"><span class="hs-identifier hs-var">i'#</span></a></span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#%3D%3D%23"><span class="hs-operator hs-var">==#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><span class="hs-number">0#</span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word8
</span><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-var">W8#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497082"><span class="hs-identifier hs-var">x#</span></a></span><span>
</span><span id="line-202"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word8
</span><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-var">W8#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#narrow8Word%23"><span class="hs-identifier hs-var">narrow8Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497082"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#uncheckedShiftL%23"><span class="hs-operator hs-var">`uncheckedShiftL#`</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679497078"><span class="hs-identifier hs-var">i'#</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#or%23"><span class="hs-operator hs-var">`or#`</span></a></span><span>
</span><span id="line-203"></span><span>                                          </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497082"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#uncheckedShiftRL%23"><span class="hs-operator hs-var">`uncheckedShiftRL#`</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int#
</span><span class="hs-number">8#</span></span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#-%23"><span class="hs-operator hs-var">-#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679497078"><span class="hs-identifier hs-var">i'#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-204"></span><span>        </span><span class="hs-keyword">where</span><span>
</span><span id="line-205"></span><span>        </span><span class="hs-glyph">!</span><span id="local-6989586621679497078"><span class="annot"><span class="annottext">i'# :: Int#
</span><a href="#local-6989586621679497078"><span class="hs-identifier hs-var hs-var">i'#</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#word2Int%23"><span class="hs-identifier hs-var">word2Int#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#int2Word%23"><span class="hs-identifier hs-var">int2Word#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679497079"><span class="hs-identifier hs-var">i#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#and%23"><span class="hs-operator hs-var">`and#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><span class="hs-number">7##</span></span><span class="hs-special">)</span><span>
</span><span id="line-206"></span><span>    </span><span id="local-6989586621679497075"><span class="annot"><span class="annottext">bitSizeMaybe :: Word8 -&gt; Maybe Int
</span><a href="Data.Bits.html#bitSizeMaybe"><span class="hs-identifier hs-var hs-var hs-var hs-var">bitSizeMaybe</span></a></span></span><span> </span><span id="local-6989586621679497073"><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497073"><span class="hs-identifier hs-var">i</span></a></span></span><span>            </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Maybe Int
forall a. a -&gt; Maybe a
</span><a href="GHC.Maybe.html#Just"><span class="hs-identifier hs-var">Just</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word8 -&gt; Int
forall b. FiniteBits b =&gt; b -&gt; Int
</span><a href="Data.Bits.html#finiteBitSize"><span class="hs-identifier hs-var">finiteBitSize</span></a></span><span> </span><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497073"><span class="hs-identifier hs-var">i</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-207"></span><span>    </span><span id="local-6989586621679497070"><span class="annot"><span class="annottext">bitSize :: Word8 -&gt; Int
</span><a href="Data.Bits.html#bitSize"><span class="hs-identifier hs-var hs-var hs-var hs-var">bitSize</span></a></span></span><span> </span><span id="local-6989586621679497068"><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497068"><span class="hs-identifier hs-var">i</span></a></span></span><span>                 </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word8 -&gt; Int
forall b. FiniteBits b =&gt; b -&gt; Int
</span><a href="Data.Bits.html#finiteBitSize"><span class="hs-identifier hs-var">finiteBitSize</span></a></span><span> </span><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621679497068"><span class="hs-identifier hs-var">i</span></a></span><span>
</span><span id="line-208"></span><span>    </span><span id="local-6989586621679497067"><span class="annot"><span class="annottext">isSigned :: Word8 -&gt; Bool
</span><a href="Data.Bits.html#isSigned"><span class="hs-identifier hs-var hs-var hs-var hs-var">isSigned</span></a></span></span><span> </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-identifier">_</span></span><span>                </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#False"><span class="hs-identifier hs-var">False</span></a></span><span>
</span><span id="line-209"></span><span>    </span><span id="local-6989586621679497065"><span class="annot"><span class="annottext">popCount :: Word8 -&gt; Int
</span><a href="#local-6989586621679497065"><span class="hs-identifier hs-var hs-var hs-var hs-var">popCount</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497064"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497064"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span>         </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int
</span><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-var">I#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#word2Int%23"><span class="hs-identifier hs-var">word2Int#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#popCnt8%23"><span class="hs-identifier hs-var">popCnt8#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497064"><span class="hs-identifier hs-var">x#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-210"></span><span>    </span><span id="local-6989586621679497061"><span class="annot"><span class="annottext">bit :: Int -&gt; Word8
</span><a href="#local-6989586621679497061"><span class="hs-identifier hs-var hs-var hs-var hs-var">bit</span></a></span></span><span>                       </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Word8
forall a. (Bits a, Num a) =&gt; Int -&gt; a
</span><a href="Data.Bits.html#bitDefault"><span class="hs-identifier hs-var">bitDefault</span></a></span><span>
</span><span id="line-211"></span><span>    </span><span id="local-6989586621679497057"><span class="annot"><span class="annottext">testBit :: Word8 -&gt; Int -&gt; Bool
</span><a href="#local-6989586621679497057"><span class="hs-identifier hs-var hs-var hs-var hs-var">testBit</span></a></span></span><span>                   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word8 -&gt; Int -&gt; Bool
forall a. (Bits a, Num a) =&gt; a -&gt; Int -&gt; Bool
</span><a href="Data.Bits.html#testBitDefault"><span class="hs-identifier hs-var">testBitDefault</span></a></span><span>
</span><span id="line-212"></span><span>
</span><span id="line-213"></span><span class="hs-comment">-- | @since 4.6.0.0</span><span>
</span><span id="line-214"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="Data.Bits.html#FiniteBits"><span class="hs-identifier hs-type">FiniteBits</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-identifier hs-type">Word8</span></a></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-215"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="Data.Bits.html#countLeadingZeros"><span class="hs-pragma hs-type">countLeadingZeros</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-216"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="Data.Bits.html#countTrailingZeros"><span class="hs-pragma hs-type">countTrailingZeros</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-217"></span><span>    </span><span id="local-6989586621679497047"><span class="annot"><span class="annottext">finiteBitSize :: Word8 -&gt; Int
</span><a href="#local-6989586621679497047"><span class="hs-identifier hs-var hs-var hs-var hs-var">finiteBitSize</span></a></span></span><span> </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">8</span></span><span>
</span><span id="line-218"></span><span>    </span><span id="local-6989586621679497046"><span class="annot"><span class="annottext">countLeadingZeros :: Word8 -&gt; Int
</span><a href="#local-6989586621679497046"><span class="hs-identifier hs-var hs-var hs-var hs-var">countLeadingZeros</span></a></span></span><span>  </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497045"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497045"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int
</span><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-var">I#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#word2Int%23"><span class="hs-identifier hs-var">word2Int#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#clz8%23"><span class="hs-identifier hs-var">clz8#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497045"><span class="hs-identifier hs-var">x#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-219"></span><span>    </span><span id="local-6989586621679497044"><span class="annot"><span class="annottext">countTrailingZeros :: Word8 -&gt; Int
</span><a href="#local-6989586621679497044"><span class="hs-identifier hs-var hs-var hs-var hs-var">countTrailingZeros</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497043"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497043"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int
</span><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-var">I#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#word2Int%23"><span class="hs-identifier hs-var">word2Int#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#ctz8%23"><span class="hs-identifier hs-var">ctz8#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497043"><span class="hs-identifier hs-var">x#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-220"></span><span>
</span><span id="line-221"></span><span class="hs-pragma">{-# RULES</span><span>
</span><span id="line-222"></span><span class="annot"><span class="hs-pragma">&quot;fromIntegral/Word8-&gt;Word8&quot;</span></span><span>   </span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="annot"><a href="GHC.Base.html#id"><span class="hs-pragma hs-type">id</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-pragma hs-type">Word8</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-pragma hs-type">Word8</span></a></span><span>
</span><span id="line-223"></span><span class="annot"><span class="hs-pragma">&quot;fromIntegral/Word8-&gt;Integer&quot;</span></span><span> </span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="annot"><a href="GHC.Real.html#toInteger"><span class="hs-pragma hs-type">toInteger</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-pragma hs-type">Word8</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-pragma hs-type">Integer</span></a></span><span>
</span><span id="line-224"></span><span class="annot"><span class="hs-pragma">&quot;fromIntegral/a-&gt;Word8&quot;</span></span><span>       </span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">\</span><span id="local-6989586621679497041"><span class="annot"><a href="#local-6989586621679497041"><span class="hs-pragma hs-var">x</span></a></span></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="hs-pragma">case</span><span> </span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679497041"><span class="hs-pragma hs-type">x</span></a></span><span> </span><span class="hs-pragma">of</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#W%23"><span class="hs-pragma hs-type">W#</span></a></span><span> </span><span id="local-6989586621679497040"><span class="annot"><a href="#local-6989586621679497040"><span class="hs-pragma hs-var">x#</span></a></span></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-pragma hs-type">W8#</span></a></span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#narrow8Word%23"><span class="hs-pragma hs-type">narrow8Word#</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679497040"><span class="hs-pragma hs-type">x#</span></a></span><span class="hs-pragma">)</span><span>
</span><span id="line-225"></span><span class="annot"><span class="hs-pragma">&quot;fromIntegral/Word8-&gt;a&quot;</span></span><span>       </span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">\</span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-pragma hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679497039"><span class="annot"><a href="#local-6989586621679497039"><span class="hs-pragma hs-var">x#</span></a></span></span><span class="hs-pragma">)</span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#W%23"><span class="hs-pragma hs-type">W#</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679497039"><span class="hs-pragma hs-type">x#</span></a></span><span class="hs-pragma">)</span><span>
</span><span id="line-226"></span><span>  </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-227"></span><span>
</span><span id="line-228"></span><span class="hs-pragma">{-# RULES</span><span>
</span><span id="line-229"></span><span class="annot"><span class="hs-pragma">&quot;properFraction/Float-&gt;(Word8,Float)&quot;</span></span><span>
</span><span id="line-230"></span><span>    </span><span class="annot"><a href="GHC.Real.html#properFraction"><span class="hs-pragma hs-type">properFraction</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">\</span><span id="local-6989586621679497037"><span class="annot"><a href="#local-6989586621679497037"><span class="hs-pragma hs-var">x</span></a></span></span><span> </span><span class="hs-pragma">-&gt;</span><span>
</span><span id="line-231"></span><span>                      </span><span class="hs-pragma">case</span><span> </span><span class="annot"><a href="GHC.Real.html#properFraction"><span class="hs-pragma hs-type">properFraction</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679497037"><span class="hs-pragma hs-type">x</span></a></span><span> </span><span class="hs-pragma">of</span><span> </span><span class="hs-pragma">{</span><span>
</span><span id="line-232"></span><span>                        </span><span class="hs-pragma">(</span><span id="local-6989586621679497036"><span class="annot"><a href="#local-6989586621679497036"><span class="hs-pragma hs-var">n</span></a></span></span><span class="hs-pragma">,</span><span> </span><span id="local-6989586621679497035"><span class="annot"><a href="#local-6989586621679497035"><span class="hs-pragma hs-var">y</span></a></span></span><span class="hs-pragma">)</span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="hs-pragma">(</span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-pragma hs-type">Word8</span></a></span><span class="hs-pragma">)</span><span> </span><span class="annot"><a href="#local-6989586621679497036"><span class="hs-pragma hs-type">n</span></a></span><span class="hs-pragma">,</span><span> </span><span class="annot"><a href="#local-6989586621679497035"><span class="hs-pragma hs-type">y</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Float"><span class="hs-pragma hs-type">Float</span></a></span><span class="hs-pragma">)</span><span> </span><span class="hs-pragma">}</span><span>
</span><span id="line-233"></span><span class="annot"><span class="hs-pragma">&quot;truncate/Float-&gt;Word8&quot;</span></span><span>
</span><span id="line-234"></span><span>    </span><span class="annot"><a href="GHC.Real.html#truncate"><span class="hs-pragma hs-type">truncate</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-pragma hs-type">Word8</span></a></span><span class="hs-pragma">)</span><span> </span><span class="annot"><a href="GHC.Base.html#."><span class="hs-pragma hs-type">.</span></a></span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#truncate"><span class="hs-pragma hs-type">truncate</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Float"><span class="hs-pragma hs-type">Float</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span class="hs-pragma">)</span><span>
</span><span id="line-235"></span><span class="annot"><span class="hs-pragma">&quot;floor/Float-&gt;Word8&quot;</span></span><span>
</span><span id="line-236"></span><span>    </span><span class="annot"><a href="GHC.Real.html#floor"><span class="hs-pragma hs-type">floor</span></a></span><span>    </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-pragma hs-type">Word8</span></a></span><span class="hs-pragma">)</span><span> </span><span class="annot"><a href="GHC.Base.html#."><span class="hs-pragma hs-type">.</span></a></span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#floor"><span class="hs-pragma hs-type">floor</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Float"><span class="hs-pragma hs-type">Float</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span class="hs-pragma">)</span><span>
</span><span id="line-237"></span><span class="annot"><span class="hs-pragma">&quot;ceiling/Float-&gt;Word8&quot;</span></span><span>
</span><span id="line-238"></span><span>    </span><span class="annot"><a href="GHC.Real.html#ceiling"><span class="hs-pragma hs-type">ceiling</span></a></span><span>  </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-pragma hs-type">Word8</span></a></span><span class="hs-pragma">)</span><span> </span><span class="annot"><a href="GHC.Base.html#."><span class="hs-pragma hs-type">.</span></a></span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#ceiling"><span class="hs-pragma hs-type">ceiling</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Float"><span class="hs-pragma hs-type">Float</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span class="hs-pragma">)</span><span>
</span><span id="line-239"></span><span class="annot"><span class="hs-pragma">&quot;round/Float-&gt;Word8&quot;</span></span><span>
</span><span id="line-240"></span><span>    </span><span class="annot"><a href="GHC.Real.html#round"><span class="hs-pragma hs-type">round</span></a></span><span>    </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-pragma hs-type">Word8</span></a></span><span class="hs-pragma">)</span><span> </span><span class="annot"><a href="GHC.Base.html#."><span class="hs-pragma hs-type">.</span></a></span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#round"><span class="hs-pragma hs-type">round</span></a></span><span>  </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Float"><span class="hs-pragma hs-type">Float</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span class="hs-pragma">)</span><span>
</span><span id="line-241"></span><span>  </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-242"></span><span>
</span><span id="line-243"></span><span class="hs-pragma">{-# RULES</span><span>
</span><span id="line-244"></span><span class="annot"><span class="hs-pragma">&quot;properFraction/Double-&gt;(Word8,Double)&quot;</span></span><span>
</span><span id="line-245"></span><span>    </span><span class="annot"><a href="GHC.Real.html#properFraction"><span class="hs-pragma hs-type">properFraction</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">\</span><span id="local-6989586621679497029"><span class="annot"><a href="#local-6989586621679497029"><span class="hs-pragma hs-var">x</span></a></span></span><span> </span><span class="hs-pragma">-&gt;</span><span>
</span><span id="line-246"></span><span>                      </span><span class="hs-pragma">case</span><span> </span><span class="annot"><a href="GHC.Real.html#properFraction"><span class="hs-pragma hs-type">properFraction</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679497029"><span class="hs-pragma hs-type">x</span></a></span><span> </span><span class="hs-pragma">of</span><span> </span><span class="hs-pragma">{</span><span>
</span><span id="line-247"></span><span>                        </span><span class="hs-pragma">(</span><span id="local-6989586621679497028"><span class="annot"><a href="#local-6989586621679497028"><span class="hs-pragma hs-var">n</span></a></span></span><span class="hs-pragma">,</span><span> </span><span id="local-6989586621679497027"><span class="annot"><a href="#local-6989586621679497027"><span class="hs-pragma hs-var">y</span></a></span></span><span class="hs-pragma">)</span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="hs-pragma">(</span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-pragma hs-type">Word8</span></a></span><span class="hs-pragma">)</span><span> </span><span class="annot"><a href="#local-6989586621679497028"><span class="hs-pragma hs-type">n</span></a></span><span class="hs-pragma">,</span><span> </span><span class="annot"><a href="#local-6989586621679497027"><span class="hs-pragma hs-type">y</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Double"><span class="hs-pragma hs-type">Double</span></a></span><span class="hs-pragma">)</span><span> </span><span class="hs-pragma">}</span><span>
</span><span id="line-248"></span><span class="annot"><span class="hs-pragma">&quot;truncate/Double-&gt;Word8&quot;</span></span><span>
</span><span id="line-249"></span><span>    </span><span class="annot"><a href="GHC.Real.html#truncate"><span class="hs-pragma hs-type">truncate</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-pragma hs-type">Word8</span></a></span><span class="hs-pragma">)</span><span> </span><span class="annot"><a href="GHC.Base.html#."><span class="hs-pragma hs-type">.</span></a></span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#truncate"><span class="hs-pragma hs-type">truncate</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Double"><span class="hs-pragma hs-type">Double</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span class="hs-pragma">)</span><span>
</span><span id="line-250"></span><span class="annot"><span class="hs-pragma">&quot;floor/Double-&gt;Word8&quot;</span></span><span>
</span><span id="line-251"></span><span>    </span><span class="annot"><a href="GHC.Real.html#floor"><span class="hs-pragma hs-type">floor</span></a></span><span>    </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-pragma hs-type">Word8</span></a></span><span class="hs-pragma">)</span><span> </span><span class="annot"><a href="GHC.Base.html#."><span class="hs-pragma hs-type">.</span></a></span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#floor"><span class="hs-pragma hs-type">floor</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Double"><span class="hs-pragma hs-type">Double</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span class="hs-pragma">)</span><span>
</span><span id="line-252"></span><span class="annot"><span class="hs-pragma">&quot;ceiling/Double-&gt;Word8&quot;</span></span><span>
</span><span id="line-253"></span><span>    </span><span class="annot"><a href="GHC.Real.html#ceiling"><span class="hs-pragma hs-type">ceiling</span></a></span><span>  </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-pragma hs-type">Word8</span></a></span><span class="hs-pragma">)</span><span> </span><span class="annot"><a href="GHC.Base.html#."><span class="hs-pragma hs-type">.</span></a></span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#ceiling"><span class="hs-pragma hs-type">ceiling</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Double"><span class="hs-pragma hs-type">Double</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span class="hs-pragma">)</span><span>
</span><span id="line-254"></span><span class="annot"><span class="hs-pragma">&quot;round/Double-&gt;Word8&quot;</span></span><span>
</span><span id="line-255"></span><span>    </span><span class="annot"><a href="GHC.Real.html#round"><span class="hs-pragma hs-type">round</span></a></span><span>    </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-pragma hs-type">Word8</span></a></span><span class="hs-pragma">)</span><span> </span><span class="annot"><a href="GHC.Base.html#."><span class="hs-pragma hs-type">.</span></a></span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#round"><span class="hs-pragma hs-type">round</span></a></span><span>  </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Double"><span class="hs-pragma hs-type">Double</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span class="hs-pragma">)</span><span>
</span><span id="line-256"></span><span>  </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-257"></span><span>
</span><span id="line-258"></span><span class="hs-comment">------------------------------------------------------------------------</span><span>
</span><span id="line-259"></span><span class="hs-comment">-- type Word16</span><span>
</span><span id="line-260"></span><span class="hs-comment">------------------------------------------------------------------------</span><span>
</span><span id="line-261"></span><span>
</span><span id="line-262"></span><span class="hs-comment">-- Word16 is represented in the same way as Word. Operations may assume</span><span>
</span><span id="line-263"></span><span class="hs-comment">-- and must ensure that it holds only values from its logical range.</span><span>
</span><span id="line-264"></span><span>
</span><span id="line-265"></span><span class="hs-keyword">data</span><span> </span><span class="hs-pragma">{-# CTYPE</span><span> </span><span class="hs-pragma">&quot;HsWord16&quot;</span><span> </span><span class="hs-pragma">#-}</span><span> </span><span id="Word16"><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-identifier hs-var">Word16</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="W16%23"><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-var">W16#</span></a></span></span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Word%23"><span class="hs-identifier hs-type">Word#</span></a></span><span>
</span><span id="line-266"></span><span class="hs-comment">-- ^ 16-bit unsigned integer type</span><span>
</span><span id="line-267"></span><span>
</span><span id="line-268"></span><span class="hs-comment">-- See GHC.Classes#matching_overloaded_methods_in_rules</span><span>
</span><span id="line-269"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-270"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Classes.html#Eq"><span class="hs-identifier hs-type">Eq</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-identifier hs-type">Word16</span></a></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-271"></span><span>    </span><span id="local-6989586621679497022"><span class="annot"><span class="annottext">== :: Word16 -&gt; Word16 -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%3D%3D"><span class="hs-operator hs-var hs-var hs-var hs-var">(==)</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word16 -&gt; Word16 -&gt; Bool
</span><a href="GHC.Word.html#eqWord16"><span class="hs-identifier hs-var">eqWord16</span></a></span><span>
</span><span id="line-272"></span><span>    </span><span id="local-6989586621679497021"><span class="annot"><span class="annottext">/= :: Word16 -&gt; Word16 -&gt; Bool
</span><a href="#local-6989586621679497021"><span class="hs-operator hs-var hs-var hs-var hs-var">(/=)</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word16 -&gt; Word16 -&gt; Bool
</span><a href="GHC.Word.html#neWord16"><span class="hs-identifier hs-var">neWord16</span></a></span><span>
</span><span id="line-273"></span><span>
</span><span id="line-274"></span><span class="annot"><a href="GHC.Word.html#eqWord16"><span class="hs-identifier hs-type">eqWord16</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#neWord16"><span class="hs-identifier hs-type">neWord16</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-identifier hs-type">Word16</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-identifier hs-type">Word16</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Bool"><span class="hs-identifier hs-type">Bool</span></a></span><span>
</span><span id="line-275"></span><span id="eqWord16"><span class="annot"><span class="annottext">eqWord16 :: Word16 -&gt; Word16 -&gt; Bool
</span><a href="GHC.Word.html#eqWord16"><span class="hs-identifier hs-var hs-var">eqWord16</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679497020"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497020"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679497019"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497019"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497020"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#eqWord%23"><span class="hs-operator hs-var">`eqWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497019"><span class="hs-identifier hs-var">y</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-276"></span><span id="neWord16"><span class="annot"><span class="annottext">neWord16 :: Word16 -&gt; Word16 -&gt; Bool
</span><a href="GHC.Word.html#neWord16"><span class="hs-identifier hs-var hs-var">neWord16</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679497018"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497018"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679497017"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497017"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497018"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#neWord%23"><span class="hs-operator hs-var">`neWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497017"><span class="hs-identifier hs-var">y</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-277"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">[</span><span class="hs-pragma">1</span><span class="hs-pragma">]</span><span> </span><span class="annot"><a href="GHC.Word.html#eqWord16"><span class="hs-pragma hs-type">eqWord16</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-278"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">[</span><span class="hs-pragma">1</span><span class="hs-pragma">]</span><span> </span><span class="annot"><a href="GHC.Word.html#neWord16"><span class="hs-pragma hs-type">neWord16</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-279"></span><span>
</span><span id="line-280"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-281"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679497005"><span id="local-6989586621679497007"><span id="local-6989586621679497013"><span class="annot"><a href="../../ghc-prim/src/GHC.Classes.html#Ord"><span class="hs-identifier hs-type">Ord</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-identifier hs-type">Word16</span></a></span></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-282"></span><span>    </span><span id="local-6989586621679497004"><span class="annot"><span class="annottext">&lt; :: Word16 -&gt; Word16 -&gt; Bool
</span><a href="#local-6989586621679497004"><span class="hs-operator hs-var hs-var hs-var hs-var">(&lt;)</span></a></span></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word16 -&gt; Word16 -&gt; Bool
</span><a href="GHC.Word.html#ltWord16"><span class="hs-identifier hs-var">ltWord16</span></a></span><span>
</span><span id="line-283"></span><span>    </span><span id="local-6989586621679497003"><span class="annot"><span class="annottext">&lt;= :: Word16 -&gt; Word16 -&gt; Bool
</span><a href="#local-6989586621679497003"><span class="hs-operator hs-var hs-var hs-var hs-var">(&lt;=)</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word16 -&gt; Word16 -&gt; Bool
</span><a href="GHC.Word.html#leWord16"><span class="hs-identifier hs-var">leWord16</span></a></span><span>
</span><span id="line-284"></span><span>    </span><span id="local-6989586621679497002"><span class="annot"><span class="annottext">&gt;= :: Word16 -&gt; Word16 -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%3E%3D"><span class="hs-operator hs-var hs-var hs-var hs-var">(&gt;=)</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word16 -&gt; Word16 -&gt; Bool
</span><a href="GHC.Word.html#geWord16"><span class="hs-identifier hs-var">geWord16</span></a></span><span>
</span><span id="line-285"></span><span>    </span><span id="local-6989586621679497001"><span class="annot"><span class="annottext">&gt; :: Word16 -&gt; Word16 -&gt; Bool
</span><a href="#local-6989586621679497001"><span class="hs-operator hs-var hs-var hs-var hs-var">(&gt;)</span></a></span></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word16 -&gt; Word16 -&gt; Bool
</span><a href="GHC.Word.html#gtWord16"><span class="hs-identifier hs-var">gtWord16</span></a></span><span>
</span><span id="line-286"></span><span>
</span><span id="line-287"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">[</span><span class="hs-pragma">1</span><span class="hs-pragma">]</span><span> </span><span class="annot"><a href="GHC.Word.html#gtWord16"><span class="hs-pragma hs-type">gtWord16</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-288"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">[</span><span class="hs-pragma">1</span><span class="hs-pragma">]</span><span> </span><span class="annot"><a href="GHC.Word.html#geWord16"><span class="hs-pragma hs-type">geWord16</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-289"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">[</span><span class="hs-pragma">1</span><span class="hs-pragma">]</span><span> </span><span class="annot"><a href="GHC.Word.html#ltWord16"><span class="hs-pragma hs-type">ltWord16</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-290"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">[</span><span class="hs-pragma">1</span><span class="hs-pragma">]</span><span> </span><span class="annot"><a href="GHC.Word.html#leWord16"><span class="hs-pragma hs-type">leWord16</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-291"></span><span class="annot"><a href="GHC.Word.html#gtWord16"><span class="hs-identifier hs-type">gtWord16</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#geWord16"><span class="hs-identifier hs-type">geWord16</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#ltWord16"><span class="hs-identifier hs-type">ltWord16</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#leWord16"><span class="hs-identifier hs-type">leWord16</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-identifier hs-type">Word16</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-identifier hs-type">Word16</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Bool"><span class="hs-identifier hs-type">Bool</span></a></span><span>
</span><span id="line-292"></span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679497000"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497000"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span id="gtWord16"><span class="annot"><span class="annottext">gtWord16 :: Word16 -&gt; Word16 -&gt; Bool
</span><a href="GHC.Word.html#gtWord16"><span class="hs-operator hs-var hs-var">`gtWord16`</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496999"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496999"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679497000"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#gtWord%23"><span class="hs-operator hs-var">`gtWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496999"><span class="hs-identifier hs-var">y</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-293"></span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496998"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496998"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span id="geWord16"><span class="annot"><span class="annottext">geWord16 :: Word16 -&gt; Word16 -&gt; Bool
</span><a href="GHC.Word.html#geWord16"><span class="hs-operator hs-var hs-var">`geWord16`</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496997"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496997"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496998"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#geWord%23"><span class="hs-operator hs-var">`geWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496997"><span class="hs-identifier hs-var">y</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-294"></span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496996"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496996"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span id="ltWord16"><span class="annot"><span class="annottext">ltWord16 :: Word16 -&gt; Word16 -&gt; Bool
</span><a href="GHC.Word.html#ltWord16"><span class="hs-operator hs-var hs-var">`ltWord16`</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496995"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496995"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496996"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#ltWord%23"><span class="hs-operator hs-var">`ltWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496995"><span class="hs-identifier hs-var">y</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-295"></span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496994"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496994"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span id="leWord16"><span class="annot"><span class="annottext">leWord16 :: Word16 -&gt; Word16 -&gt; Bool
</span><a href="GHC.Word.html#leWord16"><span class="hs-operator hs-var hs-var">`leWord16`</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496993"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496993"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496994"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#leWord%23"><span class="hs-operator hs-var">`leWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496993"><span class="hs-identifier hs-var">y</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-296"></span><span>
</span><span id="line-297"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-298"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679496988"><span id="local-6989586621679496990"><span class="annot"><a href="GHC.Show.html#Show"><span class="hs-identifier hs-type">Show</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-identifier hs-type">Word16</span></a></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-299"></span><span>    </span><span id="local-6989586621679496983"><span class="annot"><span class="annottext">showsPrec :: Int -&gt; Word16 -&gt; ShowS
</span><a href="#local-6989586621679496983"><span class="hs-identifier hs-var hs-var hs-var hs-var">showsPrec</span></a></span></span><span> </span><span id="local-6989586621679496982"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679496982"><span class="hs-identifier hs-var">p</span></a></span></span><span> </span><span id="local-6989586621679496981"><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496981"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; ShowS
forall a. Show a =&gt; Int -&gt; a -&gt; ShowS
</span><a href="GHC.Show.html#showsPrec"><span class="hs-identifier hs-var">showsPrec</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679496982"><span class="hs-identifier hs-var">p</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word16 -&gt; Int
forall a b. (Integral a, Num b) =&gt; a -&gt; b
</span><a href="GHC.Real.html#fromIntegral"><span class="hs-identifier hs-var">fromIntegral</span></a></span><span> </span><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496981"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-identifier hs-type">Int</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-300"></span><span>
</span><span id="line-301"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-302"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="GHC.Num.html#Num"><span class="hs-identifier hs-type">Num</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-identifier hs-type">Word16</span></a></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-303"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496972"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496972"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496971"><span class="annot"><span class="annottext">+ :: Word16 -&gt; Word16 -&gt; Word16
</span><a href="#local-6989586621679496971"><span class="hs-operator hs-var hs-var hs-var hs-var">+</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496970"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496970"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word16
</span><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-var">W16#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#narrow16Word%23"><span class="hs-identifier hs-var">narrow16Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496972"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#plusWord%23"><span class="hs-operator hs-var">`plusWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496970"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-304"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496969"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496969"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496968"><span class="annot"><span class="annottext">- :: Word16 -&gt; Word16 -&gt; Word16
</span><a href="GHC.Num.html#-"><span class="hs-glyph hs-var hs-var hs-var hs-var">-</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496967"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496967"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word16
</span><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-var">W16#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#narrow16Word%23"><span class="hs-identifier hs-var">narrow16Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496969"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#minusWord%23"><span class="hs-operator hs-var">`minusWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496967"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-305"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496966"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496966"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496965"><span class="annot"><span class="annottext">* :: Word16 -&gt; Word16 -&gt; Word16
</span><a href="#local-6989586621679496965"><span class="hs-operator hs-var hs-var hs-var hs-var">*</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496964"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496964"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word16
</span><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-var">W16#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#narrow16Word%23"><span class="hs-identifier hs-var">narrow16Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496966"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#timesWord%23"><span class="hs-operator hs-var">`timesWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496964"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-306"></span><span>    </span><span id="local-6989586621679496963"><span class="annot"><span class="annottext">negate :: Word16 -&gt; Word16
</span><a href="GHC.Num.html#negate"><span class="hs-identifier hs-var hs-var hs-var hs-var">negate</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496962"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496962"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span>       </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word16
</span><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-var">W16#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#narrow16Word%23"><span class="hs-identifier hs-var">narrow16Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#int2Word%23"><span class="hs-identifier hs-var">int2Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#negateInt%23"><span class="hs-identifier hs-var">negateInt#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#word2Int%23"><span class="hs-identifier hs-var">word2Int#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496962"><span class="hs-identifier hs-var">x#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-307"></span><span>    </span><span id="local-6989586621679496961"><span class="annot"><span class="annottext">abs :: Word16 -&gt; Word16
</span><a href="#local-6989586621679496961"><span class="hs-identifier hs-var hs-var hs-var hs-var">abs</span></a></span></span><span> </span><span id="local-6989586621679496960"><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496960"><span class="hs-identifier hs-var">x</span></a></span></span><span>                  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496960"><span class="hs-identifier hs-var">x</span></a></span><span>
</span><span id="line-308"></span><span>    </span><span id="local-6989586621679496955"><span class="annot"><span class="annottext">signum :: Word16 -&gt; Word16
</span><a href="#local-6989586621679496955"><span class="hs-identifier hs-var hs-var hs-var hs-var">signum</span></a></span></span><span> </span><span class="annot"><span class="annottext">Word16
</span><span class="hs-number">0</span></span><span>               </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word16
</span><span class="hs-number">0</span></span><span>
</span><span id="line-309"></span><span>    </span><span class="annot"><a href="GHC.Num.html#signum"><span class="hs-identifier hs-var">signum</span></a></span><span> </span><span class="annot"><span class="annottext">Word16
</span><span class="hs-identifier">_</span></span><span>               </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word16
</span><span class="hs-number">1</span></span><span>
</span><span id="line-310"></span><span>    </span><span id="local-6989586621679496954"><span class="annot"><span class="annottext">fromInteger :: Integer -&gt; Word16
</span><a href="GHC.Num.html#fromInteger"><span class="hs-identifier hs-var hs-var hs-var hs-var">fromInteger</span></a></span></span><span> </span><span id="local-6989586621679496953"><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679496953"><span class="hs-identifier hs-var">i</span></a></span></span><span>          </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word16
</span><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-var">W16#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#narrow16Word%23"><span class="hs-identifier hs-var">narrow16Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Integer -&gt; Word#
</span><a href="../../ghc-bignum/src/GHC.Num.Integer.html#integerToWord%23"><span class="hs-identifier hs-var">integerToWord#</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679496953"><span class="hs-identifier hs-var">i</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-311"></span><span>
</span><span id="line-312"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-313"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="GHC.Real.html#Real"><span class="hs-identifier hs-type">Real</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-identifier hs-type">Word16</span></a></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-314"></span><span>    </span><span id="local-6989586621679496943"><span class="annot"><span class="annottext">toRational :: Word16 -&gt; Rational
</span><a href="GHC.Real.html#toRational"><span class="hs-identifier hs-var hs-var hs-var hs-var">toRational</span></a></span></span><span> </span><span id="local-6989586621679496942"><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496942"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word16 -&gt; Integer
forall a. Integral a =&gt; a -&gt; Integer
</span><a href="GHC.Real.html#toInteger"><span class="hs-identifier hs-var">toInteger</span></a></span><span> </span><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496942"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Integer -&gt; Integer -&gt; Rational
forall a. Integral a =&gt; a -&gt; a -&gt; Ratio a
</span><a href="GHC.Real.html#%25"><span class="hs-operator hs-var">%</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><span class="hs-number">1</span></span><span>
</span><span id="line-315"></span><span>
</span><span id="line-316"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-317"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679496932"><span id="local-6989586621679496934"><span class="annot"><a href="GHC.Enum.html#Enum"><span class="hs-identifier hs-type">Enum</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-identifier hs-type">Word16</span></a></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-318"></span><span>    </span><span id="local-6989586621679496926"><span class="annot"><span class="annottext">succ :: Word16 -&gt; Word16
</span><a href="#local-6989586621679496926"><span class="hs-identifier hs-var hs-var hs-var hs-var">succ</span></a></span></span><span> </span><span id="local-6989586621679496925"><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496925"><span class="hs-identifier hs-var">x</span></a></span></span><span>
</span><span id="line-319"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496925"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word16 -&gt; Word16 -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%2F%3D"><span class="hs-operator hs-var">/=</span></a></span><span> </span><span class="annot"><span class="annottext">Word16
forall a. Bounded a =&gt; a
</span><a href="GHC.Enum.html#maxBound"><span class="hs-identifier hs-var">maxBound</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496925"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word16 -&gt; Word16 -&gt; Word16
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="GHC.Num.html#%2B"><span class="hs-operator hs-var">+</span></a></span><span> </span><span class="annot"><span class="annottext">Word16
</span><span class="hs-number">1</span></span><span>
</span><span id="line-320"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; Word16
forall a. String -&gt; a
</span><a href="GHC.Enum.html#succError"><span class="hs-identifier hs-var">succError</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;Word16&quot;</span></span><span>
</span><span id="line-321"></span><span>    </span><span id="local-6989586621679496920"><span class="annot"><span class="annottext">pred :: Word16 -&gt; Word16
</span><a href="#local-6989586621679496920"><span class="hs-identifier hs-var hs-var hs-var hs-var">pred</span></a></span></span><span> </span><span id="local-6989586621679496919"><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496919"><span class="hs-identifier hs-var">x</span></a></span></span><span>
</span><span id="line-322"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496919"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word16 -&gt; Word16 -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%2F%3D"><span class="hs-operator hs-var">/=</span></a></span><span> </span><span class="annot"><span class="annottext">Word16
forall a. Bounded a =&gt; a
</span><a href="GHC.Enum.html#minBound"><span class="hs-identifier hs-var">minBound</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496919"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word16 -&gt; Word16 -&gt; Word16
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="GHC.Num.html#-"><span class="hs-glyph hs-var">-</span></a></span><span> </span><span class="annot"><span class="annottext">Word16
</span><span class="hs-number">1</span></span><span>
</span><span id="line-323"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; Word16
forall a. String -&gt; a
</span><a href="GHC.Enum.html#predError"><span class="hs-identifier hs-var">predError</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;Word16&quot;</span></span><span>
</span><span id="line-324"></span><span>    </span><span id="local-6989586621679496909"><span class="annot"><span class="annottext">toEnum :: Int -&gt; Word16
</span><a href="#local-6989586621679496909"><span class="hs-identifier hs-var hs-var hs-var hs-var">toEnum</span></a></span></span><span> </span><span id="local-6989586621679496908"><span class="annot"><span class="annottext">i :: Int
</span><a href="#local-6989586621679496908"><span class="hs-identifier hs-var">i</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-type">I#</span></a></span><span> </span><span id="local-6989586621679496907"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496907"><span class="hs-identifier hs-var">i#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-325"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679496908"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%3E%3D"><span class="hs-operator hs-var">&gt;=</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">0</span></span><span> </span><span class="annot"><span class="annottext">Bool -&gt; Bool -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%26%26"><span class="hs-operator hs-var">&amp;&amp;</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679496908"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%3C%3D"><span class="hs-operator hs-var">&lt;=</span></a></span><span> </span><span class="annot"><span class="annottext">Word16 -&gt; Int
forall a b. (Integral a, Num b) =&gt; a -&gt; b
</span><a href="GHC.Real.html#fromIntegral"><span class="hs-identifier hs-var">fromIntegral</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word16
forall a. Bounded a =&gt; a
</span><a href="GHC.Enum.html#maxBound"><span class="hs-identifier hs-var">maxBound</span></a></span><span class="hs-glyph">::</span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-identifier hs-type">Word16</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-326"></span><span>                        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word16
</span><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-var">W16#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#int2Word%23"><span class="hs-identifier hs-var">int2Word#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496907"><span class="hs-identifier hs-var">i#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-327"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; Int -&gt; (Word16, Word16) -&gt; Word16
forall a b. Show a =&gt; String -&gt; Int -&gt; (a, a) -&gt; b
</span><a href="GHC.Enum.html#toEnumError"><span class="hs-identifier hs-var">toEnumError</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;Word16&quot;</span></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679496908"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word16
forall a. Bounded a =&gt; a
</span><a href="GHC.Enum.html#minBound"><span class="hs-identifier hs-var">minBound</span></a></span><span class="hs-glyph">::</span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-identifier hs-type">Word16</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">Word16
forall a. Bounded a =&gt; a
</span><a href="GHC.Enum.html#maxBound"><span class="hs-identifier hs-var">maxBound</span></a></span><span class="hs-glyph">::</span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-identifier hs-type">Word16</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-328"></span><span>    </span><span id="local-6989586621679496906"><span class="annot"><span class="annottext">fromEnum :: Word16 -&gt; Int
</span><a href="#local-6989586621679496906"><span class="hs-identifier hs-var hs-var hs-var hs-var">fromEnum</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496905"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496905"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int
</span><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-var">I#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#word2Int%23"><span class="hs-identifier hs-var">word2Int#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496905"><span class="hs-identifier hs-var">x#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-329"></span><span>    </span><span class="hs-comment">-- See Note [Stable Unfolding for list producers] in GHC.Enum</span><span>
</span><span id="line-330"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="GHC.Enum.html#enumFrom"><span class="hs-pragma hs-type">enumFrom</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-331"></span><span>    </span><span id="local-6989586621679496902"><span class="annot"><span class="annottext">enumFrom :: Word16 -&gt; [Word16]
</span><a href="GHC.Enum.html#enumFrom"><span class="hs-identifier hs-var hs-var hs-var hs-var">enumFrom</span></a></span></span><span>            </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word16 -&gt; [Word16]
forall a. (Enum a, Bounded a) =&gt; a -&gt; [a]
</span><a href="GHC.Enum.html#boundedEnumFrom"><span class="hs-identifier hs-var">boundedEnumFrom</span></a></span><span>
</span><span id="line-332"></span><span>    </span><span class="hs-comment">-- See Note [Stable Unfolding for list producers] in GHC.Enum</span><span>
</span><span id="line-333"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="GHC.Enum.html#enumFromThen"><span class="hs-pragma hs-type">enumFromThen</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-334"></span><span>    </span><span id="local-6989586621679496899"><span class="annot"><span class="annottext">enumFromThen :: Word16 -&gt; Word16 -&gt; [Word16]
</span><a href="GHC.Enum.html#enumFromThen"><span class="hs-identifier hs-var hs-var hs-var hs-var">enumFromThen</span></a></span></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word16 -&gt; Word16 -&gt; [Word16]
forall a. (Enum a, Bounded a) =&gt; a -&gt; a -&gt; [a]
</span><a href="GHC.Enum.html#boundedEnumFromThen"><span class="hs-identifier hs-var">boundedEnumFromThen</span></a></span><span>
</span><span id="line-335"></span><span>
</span><span id="line-336"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-337"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="GHC.Real.html#Integral"><span class="hs-identifier hs-type">Integral</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-identifier hs-type">Word16</span></a></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-338"></span><span>    </span><span id="local-6989586621679496885"><span class="annot"><span class="annottext">quot :: Word16 -&gt; Word16 -&gt; Word16
</span><a href="#local-6989586621679496885"><span class="hs-identifier hs-var hs-var hs-var hs-var">quot</span></a></span></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496884"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496884"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496883"><span class="annot"><span class="annottext">y :: Word16
</span><a href="#local-6989586621679496883"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496882"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496882"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-339"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496883"><span class="hs-identifier hs-var">y</span></a></span><span> </span><span class="annot"><span class="annottext">Word16 -&gt; Word16 -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%2F%3D"><span class="hs-operator hs-var">/=</span></a></span><span> </span><span class="annot"><span class="annottext">Word16
</span><span class="hs-number">0</span></span><span>                    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word16
</span><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-var">W16#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496884"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#quotWord%23"><span class="hs-operator hs-var">`quotWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496882"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-340"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>                 </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word16
forall a. a
</span><a href="GHC.Real.html#divZeroError"><span class="hs-identifier hs-var">divZeroError</span></a></span><span>
</span><span id="line-341"></span><span>    </span><span id="local-6989586621679496879"><span class="annot"><span class="annottext">rem :: Word16 -&gt; Word16 -&gt; Word16
</span><a href="#local-6989586621679496879"><span class="hs-identifier hs-var hs-var hs-var hs-var">rem</span></a></span></span><span>     </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496878"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496878"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496877"><span class="annot"><span class="annottext">y :: Word16
</span><a href="#local-6989586621679496877"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496876"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496876"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-342"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496877"><span class="hs-identifier hs-var">y</span></a></span><span> </span><span class="annot"><span class="annottext">Word16 -&gt; Word16 -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%2F%3D"><span class="hs-operator hs-var">/=</span></a></span><span> </span><span class="annot"><span class="annottext">Word16
</span><span class="hs-number">0</span></span><span>                    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word16
</span><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-var">W16#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496878"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#remWord%23"><span class="hs-operator hs-var">`remWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496876"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-343"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>                 </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word16
forall a. a
</span><a href="GHC.Real.html#divZeroError"><span class="hs-identifier hs-var">divZeroError</span></a></span><span>
</span><span id="line-344"></span><span>    </span><span id="local-6989586621679496873"><span class="annot"><span class="annottext">div :: Word16 -&gt; Word16 -&gt; Word16
</span><a href="#local-6989586621679496873"><span class="hs-identifier hs-var hs-var hs-var hs-var">div</span></a></span></span><span>     </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496872"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496872"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496871"><span class="annot"><span class="annottext">y :: Word16
</span><a href="#local-6989586621679496871"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496870"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496870"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-345"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496871"><span class="hs-identifier hs-var">y</span></a></span><span> </span><span class="annot"><span class="annottext">Word16 -&gt; Word16 -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%2F%3D"><span class="hs-operator hs-var">/=</span></a></span><span> </span><span class="annot"><span class="annottext">Word16
</span><span class="hs-number">0</span></span><span>                    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word16
</span><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-var">W16#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496872"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#quotWord%23"><span class="hs-operator hs-var">`quotWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496870"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-346"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>                 </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word16
forall a. a
</span><a href="GHC.Real.html#divZeroError"><span class="hs-identifier hs-var">divZeroError</span></a></span><span>
</span><span id="line-347"></span><span>    </span><span id="local-6989586621679496867"><span class="annot"><span class="annottext">mod :: Word16 -&gt; Word16 -&gt; Word16
</span><a href="#local-6989586621679496867"><span class="hs-identifier hs-var hs-var hs-var hs-var">mod</span></a></span></span><span>     </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496866"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496866"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496865"><span class="annot"><span class="annottext">y :: Word16
</span><a href="#local-6989586621679496865"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496864"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496864"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-348"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496865"><span class="hs-identifier hs-var">y</span></a></span><span> </span><span class="annot"><span class="annottext">Word16 -&gt; Word16 -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%2F%3D"><span class="hs-operator hs-var">/=</span></a></span><span> </span><span class="annot"><span class="annottext">Word16
</span><span class="hs-number">0</span></span><span>                    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word16
</span><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-var">W16#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496866"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#remWord%23"><span class="hs-operator hs-var">`remWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496864"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-349"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>                 </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word16
forall a. a
</span><a href="GHC.Real.html#divZeroError"><span class="hs-identifier hs-var">divZeroError</span></a></span><span>
</span><span id="line-350"></span><span>    </span><span id="local-6989586621679496861"><span class="annot"><span class="annottext">quotRem :: Word16 -&gt; Word16 -&gt; (Word16, Word16)
</span><a href="#local-6989586621679496861"><span class="hs-identifier hs-var hs-var hs-var hs-var">quotRem</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496860"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496860"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496859"><span class="annot"><span class="annottext">y :: Word16
</span><a href="#local-6989586621679496859"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496858"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496858"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-351"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496859"><span class="hs-identifier hs-var">y</span></a></span><span> </span><span class="annot"><span class="annottext">Word16 -&gt; Word16 -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%2F%3D"><span class="hs-operator hs-var">/=</span></a></span><span> </span><span class="annot"><span class="annottext">Word16
</span><span class="hs-number">0</span></span><span>                  </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496860"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; (# Word#, Word# #)
</span><a href="../../ghc-prim/src/GHC.Prim.html#quotRemWord%23"><span class="hs-operator hs-var">`quotRemWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496858"><span class="hs-identifier hs-var">y#</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-352"></span><span>                                    </span><span class="hs-special">(#</span><span> </span><span id="local-6989586621679496857"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496857"><span class="hs-identifier hs-var">q</span></a></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621679496856"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496856"><span class="hs-identifier hs-var">r</span></a></span></span><span> </span><span class="hs-special">#)</span><span> </span><span class="hs-glyph">-&gt;</span><span>
</span><span id="line-353"></span><span>                                        </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word16
</span><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-var">W16#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496857"><span class="hs-identifier hs-var">q</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word16
</span><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-var">W16#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496856"><span class="hs-identifier hs-var">r</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-354"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>                 </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(Word16, Word16)
forall a. a
</span><a href="GHC.Real.html#divZeroError"><span class="hs-identifier hs-var">divZeroError</span></a></span><span>
</span><span id="line-355"></span><span>    </span><span id="local-6989586621679496853"><span class="annot"><span class="annottext">divMod :: Word16 -&gt; Word16 -&gt; (Word16, Word16)
</span><a href="#local-6989586621679496853"><span class="hs-identifier hs-var hs-var hs-var hs-var">divMod</span></a></span></span><span>  </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496852"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496852"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496851"><span class="annot"><span class="annottext">y :: Word16
</span><a href="#local-6989586621679496851"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496850"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496850"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-356"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496851"><span class="hs-identifier hs-var">y</span></a></span><span> </span><span class="annot"><span class="annottext">Word16 -&gt; Word16 -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%2F%3D"><span class="hs-operator hs-var">/=</span></a></span><span> </span><span class="annot"><span class="annottext">Word16
</span><span class="hs-number">0</span></span><span>                    </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word16
</span><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-var">W16#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496852"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#quotWord%23"><span class="hs-operator hs-var">`quotWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496850"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word16
</span><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-var">W16#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496852"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#remWord%23"><span class="hs-operator hs-var">`remWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496850"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-357"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>                 </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(Word16, Word16)
forall a. a
</span><a href="GHC.Real.html#divZeroError"><span class="hs-identifier hs-var">divZeroError</span></a></span><span>
</span><span id="line-358"></span><span>    </span><span id="local-6989586621679496849"><span class="annot"><span class="annottext">toInteger :: Word16 -&gt; Integer
</span><a href="GHC.Real.html#toInteger"><span class="hs-identifier hs-var hs-var hs-var hs-var">toInteger</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496848"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496848"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span>             </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Integer
</span><a href="../../ghc-bignum/src/GHC.Num.Integer.html#IS"><span class="hs-identifier hs-var">IS</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#word2Int%23"><span class="hs-identifier hs-var">word2Int#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496848"><span class="hs-identifier hs-var">x#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-359"></span><span>
</span><span id="line-360"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-361"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="GHC.Enum.html#Bounded"><span class="hs-identifier hs-type">Bounded</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-identifier hs-type">Word16</span></a></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-362"></span><span>    </span><span id="local-6989586621679496844"><span class="annot"><span class="annottext">minBound :: Word16
</span><a href="#local-6989586621679496844"><span class="hs-identifier hs-var hs-var hs-var hs-var">minBound</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word16
</span><span class="hs-number">0</span></span><span>
</span><span id="line-363"></span><span>    </span><span id="local-6989586621679496842"><span class="annot"><span class="annottext">maxBound :: Word16
</span><a href="#local-6989586621679496842"><span class="hs-identifier hs-var hs-var hs-var hs-var">maxBound</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word16
</span><span class="hs-number">0xFFFF</span></span><span>
</span><span id="line-364"></span><span>
</span><span id="line-365"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-366"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679496831"><span id="local-6989586621679496833"><span id="local-6989586621679496837"><span class="annot"><a href="GHC.Ix.html#Ix"><span class="hs-identifier hs-type">Ix</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-identifier hs-type">Word16</span></a></span></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-367"></span><span>    </span><span id="local-6989586621679496829"><span class="annot"><span class="annottext">range :: (Word16, Word16) -&gt; [Word16]
</span><a href="#local-6989586621679496829"><span class="hs-identifier hs-var hs-var hs-var hs-var">range</span></a></span></span><span> </span><span class="hs-special">(</span><span id="local-6989586621679496828"><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496828"><span class="hs-identifier hs-var">m</span></a></span></span><span class="hs-special">,</span><span id="local-6989586621679496827"><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496827"><span class="hs-identifier hs-var">n</span></a></span></span><span class="hs-special">)</span><span>         </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">[</span><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496828"><span class="hs-identifier hs-var">m</span></a></span><span class="hs-glyph">..</span><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496827"><span class="hs-identifier hs-var">n</span></a></span><span class="hs-special">]</span><span>
</span><span id="line-368"></span><span>    </span><span id="local-6989586621679496823"><span class="annot"><span class="annottext">unsafeIndex :: (Word16, Word16) -&gt; Word16 -&gt; Int
</span><a href="#local-6989586621679496823"><span class="hs-identifier hs-var hs-var hs-var hs-var">unsafeIndex</span></a></span></span><span> </span><span class="hs-special">(</span><span id="local-6989586621679496822"><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496822"><span class="hs-identifier hs-var">m</span></a></span></span><span class="hs-special">,</span><span class="annot"><span class="annottext">Word16
</span><span class="hs-identifier">_</span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496821"><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496821"><span class="hs-identifier hs-var">i</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word16 -&gt; Int
forall a b. (Integral a, Num b) =&gt; a -&gt; b
</span><a href="GHC.Real.html#fromIntegral"><span class="hs-identifier hs-var">fromIntegral</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496821"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="annot"><span class="annottext">Word16 -&gt; Word16 -&gt; Word16
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="GHC.Num.html#-"><span class="hs-glyph hs-var">-</span></a></span><span> </span><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496822"><span class="hs-identifier hs-var">m</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-369"></span><span>    </span><span id="local-6989586621679496818"><span class="annot"><span class="annottext">inRange :: (Word16, Word16) -&gt; Word16 -&gt; Bool
</span><a href="#local-6989586621679496818"><span class="hs-identifier hs-var hs-var hs-var hs-var">inRange</span></a></span></span><span> </span><span class="hs-special">(</span><span id="local-6989586621679496817"><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496817"><span class="hs-identifier hs-var">m</span></a></span></span><span class="hs-special">,</span><span id="local-6989586621679496816"><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496816"><span class="hs-identifier hs-var">n</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496815"><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496815"><span class="hs-identifier hs-var">i</span></a></span></span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496817"><span class="hs-identifier hs-var">m</span></a></span><span> </span><span class="annot"><span class="annottext">Word16 -&gt; Word16 -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%3C%3D"><span class="hs-operator hs-var">&lt;=</span></a></span><span> </span><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496815"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="annot"><span class="annottext">Bool -&gt; Bool -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%26%26"><span class="hs-operator hs-var">&amp;&amp;</span></a></span><span> </span><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496815"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="annot"><span class="annottext">Word16 -&gt; Word16 -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%3C%3D"><span class="hs-operator hs-var">&lt;=</span></a></span><span> </span><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496816"><span class="hs-identifier hs-var">n</span></a></span><span>
</span><span id="line-370"></span><span>
</span><span id="line-371"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-372"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679496786"><span id="local-6989586621679496788"><span id="local-6989586621679496798"><span id="local-6989586621679496800"><span id="local-6989586621679496802"><span id="local-6989586621679496805"><span class="annot"><a href="Data.Bits.html#Bits"><span class="hs-identifier hs-type">Bits</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-identifier hs-type">Word16</span></a></span></span></span></span></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-373"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="Data.Bits.html#shift"><span class="hs-pragma hs-type">shift</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-374"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="Data.Bits.html#bit"><span class="hs-pragma hs-type">bit</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-375"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="Data.Bits.html#testBit"><span class="hs-pragma hs-type">testBit</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-376"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="Data.Bits.html#popCount"><span class="hs-pragma hs-type">popCount</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-377"></span><span>
</span><span id="line-378"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496784"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496784"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496783"><span class="annot"><span class="annottext">.&amp;. :: Word16 -&gt; Word16 -&gt; Word16
</span><a href="#local-6989586621679496783"><span class="hs-operator hs-var hs-var hs-var hs-var">.&amp;.</span></a></span></span><span>   </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496782"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496782"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word16
</span><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-var">W16#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496784"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#and%23"><span class="hs-operator hs-var">`and#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496782"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-379"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496781"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496781"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496780"><span class="annot"><span class="annottext">.|. :: Word16 -&gt; Word16 -&gt; Word16
</span><a href="#local-6989586621679496780"><span class="hs-operator hs-var hs-var hs-var hs-var">.|.</span></a></span></span><span>   </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496779"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496779"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word16
</span><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-var">W16#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496781"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#or%23"><span class="hs-operator hs-var">`or#`</span></a></span><span>  </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496779"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-380"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496778"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496778"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496777"><span class="annot"><span class="annottext">xor :: Word16 -&gt; Word16 -&gt; Word16
</span><a href="#local-6989586621679496777"><span class="hs-operator hs-var hs-var hs-var hs-var">`xor`</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496776"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496776"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word16
</span><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-var">W16#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496778"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#xor%23"><span class="hs-operator hs-var">`xor#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496776"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-381"></span><span>    </span><span id="local-6989586621679496775"><span class="annot"><span class="annottext">complement :: Word16 -&gt; Word16
</span><a href="#local-6989586621679496775"><span class="hs-identifier hs-var hs-var hs-var hs-var">complement</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496774"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496774"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span>       </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word16
</span><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-var">W16#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496774"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#xor%23"><span class="hs-operator hs-var">`xor#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496773"><span class="hs-identifier hs-var">mb#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-382"></span><span>        </span><span class="hs-keyword">where</span><span> </span><span class="hs-glyph">!</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496773"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496773"><span class="hs-identifier hs-var">mb#</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word16
forall a. Bounded a =&gt; a
</span><a href="GHC.Enum.html#maxBound"><span class="hs-identifier hs-var">maxBound</span></a></span><span>
</span><span id="line-383"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496771"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496771"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496770"><span class="annot"><span class="annottext">shift :: Word16 -&gt; Int -&gt; Word16
</span><a href="#local-6989586621679496770"><span class="hs-operator hs-var hs-var hs-var hs-var">`shift`</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-type">I#</span></a></span><span> </span><span id="local-6989586621679496769"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496769"><span class="hs-identifier hs-var">i#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-384"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496769"><span class="hs-identifier hs-var">i#</span></a></span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#%3E%3D%23"><span class="hs-operator hs-var">&gt;=#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><span class="hs-number">0#</span></span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word16
</span><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-var">W16#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#narrow16Word%23"><span class="hs-identifier hs-var">narrow16Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496771"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="GHC.Base.html#shiftL%23"><span class="hs-operator hs-var">`shiftL#`</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496769"><span class="hs-identifier hs-var">i#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-385"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>            </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word16
</span><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-var">W16#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496771"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="GHC.Base.html#shiftRL%23"><span class="hs-operator hs-var">`shiftRL#`</span></a></span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#negateInt%23"><span class="hs-identifier hs-var">negateInt#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496769"><span class="hs-identifier hs-var">i#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-386"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496768"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496768"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496767"><span class="annot"><span class="annottext">shiftL :: Word16 -&gt; Int -&gt; Word16
</span><a href="#local-6989586621679496767"><span class="hs-operator hs-var hs-var hs-var hs-var">`shiftL`</span></a></span></span><span>       </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-type">I#</span></a></span><span> </span><span id="local-6989586621679496766"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496766"><span class="hs-identifier hs-var">i#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-387"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496766"><span class="hs-identifier hs-var">i#</span></a></span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#%3E%3D%23"><span class="hs-operator hs-var">&gt;=#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><span class="hs-number">0#</span></span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word16
</span><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-var">W16#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#narrow16Word%23"><span class="hs-identifier hs-var">narrow16Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496768"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="GHC.Base.html#shiftL%23"><span class="hs-operator hs-var">`shiftL#`</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496766"><span class="hs-identifier hs-var">i#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-388"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>            </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word16
forall a. a
</span><a href="GHC.Real.html#overflowError"><span class="hs-identifier hs-var">overflowError</span></a></span><span>
</span><span id="line-389"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496765"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496765"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496764"><span class="annot"><span class="annottext">unsafeShiftL :: Word16 -&gt; Int -&gt; Word16
</span><a href="#local-6989586621679496764"><span class="hs-operator hs-var hs-var hs-var hs-var">`unsafeShiftL`</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-type">I#</span></a></span><span> </span><span id="local-6989586621679496763"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496763"><span class="hs-identifier hs-var">i#</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-390"></span><span>        </span><span class="annot"><span class="annottext">Word# -&gt; Word16
</span><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-var">W16#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#narrow16Word%23"><span class="hs-identifier hs-var">narrow16Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496765"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#uncheckedShiftL%23"><span class="hs-operator hs-var">`uncheckedShiftL#`</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496763"><span class="hs-identifier hs-var">i#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-391"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496762"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496762"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496761"><span class="annot"><span class="annottext">shiftR :: Word16 -&gt; Int -&gt; Word16
</span><a href="#local-6989586621679496761"><span class="hs-operator hs-var hs-var hs-var hs-var">`shiftR`</span></a></span></span><span>       </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-type">I#</span></a></span><span> </span><span id="local-6989586621679496760"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496760"><span class="hs-identifier hs-var">i#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-392"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496760"><span class="hs-identifier hs-var">i#</span></a></span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#%3E%3D%23"><span class="hs-operator hs-var">&gt;=#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><span class="hs-number">0#</span></span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word16
</span><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-var">W16#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496762"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="GHC.Base.html#shiftRL%23"><span class="hs-operator hs-var">`shiftRL#`</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496760"><span class="hs-identifier hs-var">i#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-393"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>            </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word16
forall a. a
</span><a href="GHC.Real.html#overflowError"><span class="hs-identifier hs-var">overflowError</span></a></span><span>
</span><span id="line-394"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496759"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496759"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496758"><span class="annot"><span class="annottext">unsafeShiftR :: Word16 -&gt; Int -&gt; Word16
</span><a href="#local-6989586621679496758"><span class="hs-operator hs-var hs-var hs-var hs-var">`unsafeShiftR`</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-type">I#</span></a></span><span> </span><span id="local-6989586621679496757"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496757"><span class="hs-identifier hs-var">i#</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word16
</span><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-var">W16#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496759"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#uncheckedShiftRL%23"><span class="hs-operator hs-var">`uncheckedShiftRL#`</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496757"><span class="hs-identifier hs-var">i#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-395"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496756"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496756"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496755"><span class="annot"><span class="annottext">rotate :: Word16 -&gt; Int -&gt; Word16
</span><a href="#local-6989586621679496755"><span class="hs-operator hs-var hs-var hs-var hs-var">`rotate`</span></a></span></span><span>       </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-type">I#</span></a></span><span> </span><span id="local-6989586621679496754"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496754"><span class="hs-identifier hs-var">i#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-396"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496753"><span class="hs-identifier hs-var">i'#</span></a></span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#%3D%3D%23"><span class="hs-operator hs-var">==#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><span class="hs-number">0#</span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word16
</span><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-var">W16#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496756"><span class="hs-identifier hs-var">x#</span></a></span><span>
</span><span id="line-397"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word16
</span><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-var">W16#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#narrow16Word%23"><span class="hs-identifier hs-var">narrow16Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496756"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#uncheckedShiftL%23"><span class="hs-operator hs-var">`uncheckedShiftL#`</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496753"><span class="hs-identifier hs-var">i'#</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#or%23"><span class="hs-operator hs-var">`or#`</span></a></span><span>
</span><span id="line-398"></span><span>                                            </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496756"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#uncheckedShiftRL%23"><span class="hs-operator hs-var">`uncheckedShiftRL#`</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int#
</span><span class="hs-number">16#</span></span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#-%23"><span class="hs-operator hs-var">-#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496753"><span class="hs-identifier hs-var">i'#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-399"></span><span>        </span><span class="hs-keyword">where</span><span>
</span><span id="line-400"></span><span>        </span><span class="hs-glyph">!</span><span id="local-6989586621679496753"><span class="annot"><span class="annottext">i'# :: Int#
</span><a href="#local-6989586621679496753"><span class="hs-identifier hs-var hs-var">i'#</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#word2Int%23"><span class="hs-identifier hs-var">word2Int#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#int2Word%23"><span class="hs-identifier hs-var">int2Word#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496754"><span class="hs-identifier hs-var">i#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#and%23"><span class="hs-operator hs-var">`and#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><span class="hs-number">15##</span></span><span class="hs-special">)</span><span>
</span><span id="line-401"></span><span>    </span><span id="local-6989586621679496750"><span class="annot"><span class="annottext">bitSizeMaybe :: Word16 -&gt; Maybe Int
</span><a href="#local-6989586621679496750"><span class="hs-identifier hs-var hs-var hs-var hs-var">bitSizeMaybe</span></a></span></span><span> </span><span id="local-6989586621679496749"><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496749"><span class="hs-identifier hs-var">i</span></a></span></span><span>            </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Maybe Int
forall a. a -&gt; Maybe a
</span><a href="GHC.Maybe.html#Just"><span class="hs-identifier hs-var">Just</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word16 -&gt; Int
forall b. FiniteBits b =&gt; b -&gt; Int
</span><a href="Data.Bits.html#finiteBitSize"><span class="hs-identifier hs-var">finiteBitSize</span></a></span><span> </span><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496749"><span class="hs-identifier hs-var">i</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-402"></span><span>    </span><span id="local-6989586621679496747"><span class="annot"><span class="annottext">bitSize :: Word16 -&gt; Int
</span><a href="#local-6989586621679496747"><span class="hs-identifier hs-var hs-var hs-var hs-var">bitSize</span></a></span></span><span> </span><span id="local-6989586621679496746"><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496746"><span class="hs-identifier hs-var">i</span></a></span></span><span>                 </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word16 -&gt; Int
forall b. FiniteBits b =&gt; b -&gt; Int
</span><a href="Data.Bits.html#finiteBitSize"><span class="hs-identifier hs-var">finiteBitSize</span></a></span><span> </span><span class="annot"><span class="annottext">Word16
</span><a href="#local-6989586621679496746"><span class="hs-identifier hs-var">i</span></a></span><span>
</span><span id="line-403"></span><span>    </span><span id="local-6989586621679496745"><span class="annot"><span class="annottext">isSigned :: Word16 -&gt; Bool
</span><a href="#local-6989586621679496745"><span class="hs-identifier hs-var hs-var hs-var hs-var">isSigned</span></a></span></span><span> </span><span class="annot"><span class="annottext">Word16
</span><span class="hs-identifier">_</span></span><span>                </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#False"><span class="hs-identifier hs-var">False</span></a></span><span>
</span><span id="line-404"></span><span>    </span><span id="local-6989586621679496744"><span class="annot"><span class="annottext">popCount :: Word16 -&gt; Int
</span><a href="#local-6989586621679496744"><span class="hs-identifier hs-var hs-var hs-var hs-var">popCount</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496743"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496743"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int
</span><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-var">I#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#word2Int%23"><span class="hs-identifier hs-var">word2Int#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#popCnt16%23"><span class="hs-identifier hs-var">popCnt16#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496743"><span class="hs-identifier hs-var">x#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-405"></span><span>    </span><span id="local-6989586621679496740"><span class="annot"><span class="annottext">bit :: Int -&gt; Word16
</span><a href="#local-6989586621679496740"><span class="hs-identifier hs-var hs-var hs-var hs-var">bit</span></a></span></span><span>                       </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Word16
forall a. (Bits a, Num a) =&gt; Int -&gt; a
</span><a href="Data.Bits.html#bitDefault"><span class="hs-identifier hs-var">bitDefault</span></a></span><span>
</span><span id="line-406"></span><span>    </span><span id="local-6989586621679496737"><span class="annot"><span class="annottext">testBit :: Word16 -&gt; Int -&gt; Bool
</span><a href="#local-6989586621679496737"><span class="hs-identifier hs-var hs-var hs-var hs-var">testBit</span></a></span></span><span>                   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word16 -&gt; Int -&gt; Bool
forall a. (Bits a, Num a) =&gt; a -&gt; Int -&gt; Bool
</span><a href="Data.Bits.html#testBitDefault"><span class="hs-identifier hs-var">testBitDefault</span></a></span><span>
</span><span id="line-407"></span><span>
</span><span id="line-408"></span><span class="hs-comment">-- | @since 4.6.0.0</span><span>
</span><span id="line-409"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="Data.Bits.html#FiniteBits"><span class="hs-identifier hs-type">FiniteBits</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-identifier hs-type">Word16</span></a></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-410"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="Data.Bits.html#countLeadingZeros"><span class="hs-pragma hs-type">countLeadingZeros</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-411"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="Data.Bits.html#countTrailingZeros"><span class="hs-pragma hs-type">countTrailingZeros</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-412"></span><span>    </span><span id="local-6989586621679496731"><span class="annot"><span class="annottext">finiteBitSize :: Word16 -&gt; Int
</span><a href="#local-6989586621679496731"><span class="hs-identifier hs-var hs-var hs-var hs-var">finiteBitSize</span></a></span></span><span> </span><span class="annot"><span class="annottext">Word16
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">16</span></span><span>
</span><span id="line-413"></span><span>    </span><span id="local-6989586621679496730"><span class="annot"><span class="annottext">countLeadingZeros :: Word16 -&gt; Int
</span><a href="#local-6989586621679496730"><span class="hs-identifier hs-var hs-var hs-var hs-var">countLeadingZeros</span></a></span></span><span>  </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496729"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496729"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int
</span><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-var">I#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#word2Int%23"><span class="hs-identifier hs-var">word2Int#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#clz16%23"><span class="hs-identifier hs-var">clz16#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496729"><span class="hs-identifier hs-var">x#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-414"></span><span>    </span><span id="local-6989586621679496728"><span class="annot"><span class="annottext">countTrailingZeros :: Word16 -&gt; Int
</span><a href="#local-6989586621679496728"><span class="hs-identifier hs-var hs-var hs-var hs-var">countTrailingZeros</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496727"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496727"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int
</span><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-var">I#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#word2Int%23"><span class="hs-identifier hs-var">word2Int#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#ctz16%23"><span class="hs-identifier hs-var">ctz16#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496727"><span class="hs-identifier hs-var">x#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-415"></span><span>
</span><span id="line-416"></span><span class="hs-comment">-- | Reverse order of bytes in 'Word16'.</span><span>
</span><span id="line-417"></span><span class="hs-comment">--</span><span>
</span><span id="line-418"></span><span class="hs-comment">-- @since 4.7.0.0</span><span>
</span><span id="line-419"></span><span class="annot"><a href="GHC.Word.html#byteSwap16"><span class="hs-identifier hs-type">byteSwap16</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-identifier hs-type">Word16</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-identifier hs-type">Word16</span></a></span><span>
</span><span id="line-420"></span><span id="byteSwap16"><span class="annot"><span class="annottext">byteSwap16 :: Word16 -&gt; Word16
</span><a href="GHC.Word.html#byteSwap16"><span class="hs-identifier hs-var hs-var">byteSwap16</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496726"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496726"><span class="hs-identifier hs-var">w#</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word16
</span><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-var">W16#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#narrow16Word%23"><span class="hs-identifier hs-var">narrow16Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#byteSwap16%23"><span class="hs-identifier hs-var">byteSwap16#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496726"><span class="hs-identifier hs-var">w#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-421"></span><span>
</span><span id="line-422"></span><span class="hs-pragma">{-# RULES</span><span>
</span><span id="line-423"></span><span class="annot"><span class="hs-pragma">&quot;fromIntegral/Word8-&gt;Word16&quot;</span></span><span>   </span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">\</span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-pragma hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679496725"><span class="annot"><a href="#local-6989586621679496725"><span class="hs-pragma hs-var">x#</span></a></span></span><span class="hs-pragma">)</span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-pragma hs-type">W16#</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679496725"><span class="hs-pragma hs-type">x#</span></a></span><span>
</span><span id="line-424"></span><span class="annot"><span class="hs-pragma">&quot;fromIntegral/Word16-&gt;Word16&quot;</span></span><span>  </span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="annot"><a href="GHC.Base.html#id"><span class="hs-pragma hs-type">id</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-pragma hs-type">Word16</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-pragma hs-type">Word16</span></a></span><span>
</span><span id="line-425"></span><span class="annot"><span class="hs-pragma">&quot;fromIntegral/Word16-&gt;Integer&quot;</span></span><span> </span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="annot"><a href="GHC.Real.html#toInteger"><span class="hs-pragma hs-type">toInteger</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-pragma hs-type">Word16</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-pragma hs-type">Integer</span></a></span><span>
</span><span id="line-426"></span><span class="annot"><span class="hs-pragma">&quot;fromIntegral/a-&gt;Word16&quot;</span></span><span>       </span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">\</span><span id="local-6989586621679496724"><span class="annot"><a href="#local-6989586621679496724"><span class="hs-pragma hs-var">x</span></a></span></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="hs-pragma">case</span><span> </span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679496724"><span class="hs-pragma hs-type">x</span></a></span><span> </span><span class="hs-pragma">of</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#W%23"><span class="hs-pragma hs-type">W#</span></a></span><span> </span><span id="local-6989586621679496723"><span class="annot"><a href="#local-6989586621679496723"><span class="hs-pragma hs-var">x#</span></a></span></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-pragma hs-type">W16#</span></a></span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#narrow16Word%23"><span class="hs-pragma hs-type">narrow16Word#</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679496723"><span class="hs-pragma hs-type">x#</span></a></span><span class="hs-pragma">)</span><span>
</span><span id="line-427"></span><span class="annot"><span class="hs-pragma">&quot;fromIntegral/Word16-&gt;a&quot;</span></span><span>       </span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">\</span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-pragma hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496722"><span class="annot"><a href="#local-6989586621679496722"><span class="hs-pragma hs-var">x#</span></a></span></span><span class="hs-pragma">)</span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#W%23"><span class="hs-pragma hs-type">W#</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679496722"><span class="hs-pragma hs-type">x#</span></a></span><span class="hs-pragma">)</span><span>
</span><span id="line-428"></span><span>  </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-429"></span><span>
</span><span id="line-430"></span><span class="hs-pragma">{-# RULES</span><span>
</span><span id="line-431"></span><span class="annot"><span class="hs-pragma">&quot;properFraction/Float-&gt;(Word16,Float)&quot;</span></span><span>
</span><span id="line-432"></span><span>    </span><span class="annot"><a href="GHC.Real.html#properFraction"><span class="hs-pragma hs-type">properFraction</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">\</span><span id="local-6989586621679496721"><span class="annot"><a href="#local-6989586621679496721"><span class="hs-pragma hs-var">x</span></a></span></span><span> </span><span class="hs-pragma">-&gt;</span><span>
</span><span id="line-433"></span><span>                      </span><span class="hs-pragma">case</span><span> </span><span class="annot"><a href="GHC.Real.html#properFraction"><span class="hs-pragma hs-type">properFraction</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679496721"><span class="hs-pragma hs-type">x</span></a></span><span> </span><span class="hs-pragma">of</span><span> </span><span class="hs-pragma">{</span><span>
</span><span id="line-434"></span><span>                        </span><span class="hs-pragma">(</span><span id="local-6989586621679496720"><span class="annot"><a href="#local-6989586621679496720"><span class="hs-pragma hs-var">n</span></a></span></span><span class="hs-pragma">,</span><span> </span><span id="local-6989586621679496719"><span class="annot"><a href="#local-6989586621679496719"><span class="hs-pragma hs-var">y</span></a></span></span><span class="hs-pragma">)</span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="hs-pragma">(</span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-pragma hs-type">Word16</span></a></span><span class="hs-pragma">)</span><span> </span><span class="annot"><a href="#local-6989586621679496720"><span class="hs-pragma hs-type">n</span></a></span><span class="hs-pragma">,</span><span> </span><span class="annot"><a href="#local-6989586621679496719"><span class="hs-pragma hs-type">y</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Float"><span class="hs-pragma hs-type">Float</span></a></span><span class="hs-pragma">)</span><span> </span><span class="hs-pragma">}</span><span>
</span><span id="line-435"></span><span class="annot"><span class="hs-pragma">&quot;truncate/Float-&gt;Word16&quot;</span></span><span>
</span><span id="line-436"></span><span>    </span><span class="annot"><a href="GHC.Real.html#truncate"><span class="hs-pragma hs-type">truncate</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-pragma hs-type">Word16</span></a></span><span class="hs-pragma">)</span><span> </span><span class="annot"><a href="GHC.Base.html#."><span class="hs-pragma hs-type">.</span></a></span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#truncate"><span class="hs-pragma hs-type">truncate</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Float"><span class="hs-pragma hs-type">Float</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span class="hs-pragma">)</span><span>
</span><span id="line-437"></span><span class="annot"><span class="hs-pragma">&quot;floor/Float-&gt;Word16&quot;</span></span><span>
</span><span id="line-438"></span><span>    </span><span class="annot"><a href="GHC.Real.html#floor"><span class="hs-pragma hs-type">floor</span></a></span><span>    </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-pragma hs-type">Word16</span></a></span><span class="hs-pragma">)</span><span> </span><span class="annot"><a href="GHC.Base.html#."><span class="hs-pragma hs-type">.</span></a></span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#floor"><span class="hs-pragma hs-type">floor</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Float"><span class="hs-pragma hs-type">Float</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span class="hs-pragma">)</span><span>
</span><span id="line-439"></span><span class="annot"><span class="hs-pragma">&quot;ceiling/Float-&gt;Word16&quot;</span></span><span>
</span><span id="line-440"></span><span>    </span><span class="annot"><a href="GHC.Real.html#ceiling"><span class="hs-pragma hs-type">ceiling</span></a></span><span>  </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-pragma hs-type">Word16</span></a></span><span class="hs-pragma">)</span><span> </span><span class="annot"><a href="GHC.Base.html#."><span class="hs-pragma hs-type">.</span></a></span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#ceiling"><span class="hs-pragma hs-type">ceiling</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Float"><span class="hs-pragma hs-type">Float</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span class="hs-pragma">)</span><span>
</span><span id="line-441"></span><span class="annot"><span class="hs-pragma">&quot;round/Float-&gt;Word16&quot;</span></span><span>
</span><span id="line-442"></span><span>    </span><span class="annot"><a href="GHC.Real.html#round"><span class="hs-pragma hs-type">round</span></a></span><span>    </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-pragma hs-type">Word16</span></a></span><span class="hs-pragma">)</span><span> </span><span class="annot"><a href="GHC.Base.html#."><span class="hs-pragma hs-type">.</span></a></span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#round"><span class="hs-pragma hs-type">round</span></a></span><span>  </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Float"><span class="hs-pragma hs-type">Float</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span class="hs-pragma">)</span><span>
</span><span id="line-443"></span><span>  </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-444"></span><span>
</span><span id="line-445"></span><span class="hs-pragma">{-# RULES</span><span>
</span><span id="line-446"></span><span class="annot"><span class="hs-pragma">&quot;properFraction/Double-&gt;(Word16,Double)&quot;</span></span><span>
</span><span id="line-447"></span><span>    </span><span class="annot"><a href="GHC.Real.html#properFraction"><span class="hs-pragma hs-type">properFraction</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">\</span><span id="local-6989586621679496718"><span class="annot"><a href="#local-6989586621679496718"><span class="hs-pragma hs-var">x</span></a></span></span><span> </span><span class="hs-pragma">-&gt;</span><span>
</span><span id="line-448"></span><span>                      </span><span class="hs-pragma">case</span><span> </span><span class="annot"><a href="GHC.Real.html#properFraction"><span class="hs-pragma hs-type">properFraction</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679496718"><span class="hs-pragma hs-type">x</span></a></span><span> </span><span class="hs-pragma">of</span><span> </span><span class="hs-pragma">{</span><span>
</span><span id="line-449"></span><span>                        </span><span class="hs-pragma">(</span><span id="local-6989586621679496717"><span class="annot"><a href="#local-6989586621679496717"><span class="hs-pragma hs-var">n</span></a></span></span><span class="hs-pragma">,</span><span> </span><span id="local-6989586621679496716"><span class="annot"><a href="#local-6989586621679496716"><span class="hs-pragma hs-var">y</span></a></span></span><span class="hs-pragma">)</span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="hs-pragma">(</span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-pragma hs-type">Word16</span></a></span><span class="hs-pragma">)</span><span> </span><span class="annot"><a href="#local-6989586621679496717"><span class="hs-pragma hs-type">n</span></a></span><span class="hs-pragma">,</span><span> </span><span class="annot"><a href="#local-6989586621679496716"><span class="hs-pragma hs-type">y</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Double"><span class="hs-pragma hs-type">Double</span></a></span><span class="hs-pragma">)</span><span> </span><span class="hs-pragma">}</span><span>
</span><span id="line-450"></span><span class="annot"><span class="hs-pragma">&quot;truncate/Double-&gt;Word16&quot;</span></span><span>
</span><span id="line-451"></span><span>    </span><span class="annot"><a href="GHC.Real.html#truncate"><span class="hs-pragma hs-type">truncate</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-pragma hs-type">Word16</span></a></span><span class="hs-pragma">)</span><span> </span><span class="annot"><a href="GHC.Base.html#."><span class="hs-pragma hs-type">.</span></a></span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#truncate"><span class="hs-pragma hs-type">truncate</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Double"><span class="hs-pragma hs-type">Double</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span class="hs-pragma">)</span><span>
</span><span id="line-452"></span><span class="annot"><span class="hs-pragma">&quot;floor/Double-&gt;Word16&quot;</span></span><span>
</span><span id="line-453"></span><span>    </span><span class="annot"><a href="GHC.Real.html#floor"><span class="hs-pragma hs-type">floor</span></a></span><span>    </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-pragma hs-type">Word16</span></a></span><span class="hs-pragma">)</span><span> </span><span class="annot"><a href="GHC.Base.html#."><span class="hs-pragma hs-type">.</span></a></span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#floor"><span class="hs-pragma hs-type">floor</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Double"><span class="hs-pragma hs-type">Double</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span class="hs-pragma">)</span><span>
</span><span id="line-454"></span><span class="annot"><span class="hs-pragma">&quot;ceiling/Double-&gt;Word16&quot;</span></span><span>
</span><span id="line-455"></span><span>    </span><span class="annot"><a href="GHC.Real.html#ceiling"><span class="hs-pragma hs-type">ceiling</span></a></span><span>  </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-pragma hs-type">Word16</span></a></span><span class="hs-pragma">)</span><span> </span><span class="annot"><a href="GHC.Base.html#."><span class="hs-pragma hs-type">.</span></a></span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#ceiling"><span class="hs-pragma hs-type">ceiling</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Double"><span class="hs-pragma hs-type">Double</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span class="hs-pragma">)</span><span>
</span><span id="line-456"></span><span class="annot"><span class="hs-pragma">&quot;round/Double-&gt;Word16&quot;</span></span><span>
</span><span id="line-457"></span><span>    </span><span class="annot"><a href="GHC.Real.html#round"><span class="hs-pragma hs-type">round</span></a></span><span>    </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-pragma hs-type">Word16</span></a></span><span class="hs-pragma">)</span><span> </span><span class="annot"><a href="GHC.Base.html#."><span class="hs-pragma hs-type">.</span></a></span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#round"><span class="hs-pragma hs-type">round</span></a></span><span>  </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Double"><span class="hs-pragma hs-type">Double</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span class="hs-pragma">)</span><span>
</span><span id="line-458"></span><span>  </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-459"></span><span>
</span><span id="line-460"></span><span class="hs-comment">------------------------------------------------------------------------</span><span>
</span><span id="line-461"></span><span class="hs-comment">-- type Word32</span><span>
</span><span id="line-462"></span><span class="hs-comment">------------------------------------------------------------------------</span><span>
</span><span id="line-463"></span><span>
</span><span id="line-464"></span><span class="hs-comment">-- Word32 is represented in the same way as Word.</span><span class="hs-cpp">
#if WORD_SIZE_IN_BITS &gt; 32
</span><span class="hs-comment">-- Operations may assume and must ensure that it holds only values</span><span>
</span><span id="line-467"></span><span class="hs-comment">-- from its logical range.</span><span>
</span><span id="line-468"></span><span>
</span><span id="line-469"></span><span class="hs-comment">-- We can use rewrite rules for the RealFrac methods</span><span>
</span><span id="line-470"></span><span>
</span><span id="line-471"></span><span class="hs-pragma">{-# RULES</span><span>
</span><span id="line-472"></span><span class="annot"><span class="hs-pragma">&quot;properFraction/Float-&gt;(Word32,Float)&quot;</span></span><span>
</span><span id="line-473"></span><span>    </span><span class="annot"><a href="GHC.Real.html#properFraction"><span class="hs-pragma hs-type">properFraction</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">\</span><span id="local-6989586621679496715"><span class="annot"><a href="#local-6989586621679496715"><span class="hs-pragma hs-var">x</span></a></span></span><span> </span><span class="hs-pragma">-&gt;</span><span>
</span><span id="line-474"></span><span>                      </span><span class="hs-pragma">case</span><span> </span><span class="annot"><a href="GHC.Real.html#properFraction"><span class="hs-pragma hs-type">properFraction</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679496715"><span class="hs-pragma hs-type">x</span></a></span><span> </span><span class="hs-pragma">of</span><span> </span><span class="hs-pragma">{</span><span>
</span><span id="line-475"></span><span>                        </span><span class="hs-pragma">(</span><span id="local-6989586621679496714"><span class="annot"><a href="#local-6989586621679496714"><span class="hs-pragma hs-var">n</span></a></span></span><span class="hs-pragma">,</span><span> </span><span id="local-6989586621679496713"><span class="annot"><a href="#local-6989586621679496713"><span class="hs-pragma hs-var">y</span></a></span></span><span class="hs-pragma">)</span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="hs-pragma">(</span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-pragma hs-type">Word32</span></a></span><span class="hs-pragma">)</span><span> </span><span class="annot"><a href="#local-6989586621679496714"><span class="hs-pragma hs-type">n</span></a></span><span class="hs-pragma">,</span><span> </span><span class="annot"><a href="#local-6989586621679496713"><span class="hs-pragma hs-type">y</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Float"><span class="hs-pragma hs-type">Float</span></a></span><span class="hs-pragma">)</span><span> </span><span class="hs-pragma">}</span><span>
</span><span id="line-476"></span><span class="annot"><span class="hs-pragma">&quot;truncate/Float-&gt;Word32&quot;</span></span><span>
</span><span id="line-477"></span><span>    </span><span class="annot"><a href="GHC.Real.html#truncate"><span class="hs-pragma hs-type">truncate</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-pragma hs-type">Word32</span></a></span><span class="hs-pragma">)</span><span> </span><span class="annot"><a href="GHC.Base.html#."><span class="hs-pragma hs-type">.</span></a></span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#truncate"><span class="hs-pragma hs-type">truncate</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Float"><span class="hs-pragma hs-type">Float</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span class="hs-pragma">)</span><span>
</span><span id="line-478"></span><span class="annot"><span class="hs-pragma">&quot;floor/Float-&gt;Word32&quot;</span></span><span>
</span><span id="line-479"></span><span>    </span><span class="annot"><a href="GHC.Real.html#floor"><span class="hs-pragma hs-type">floor</span></a></span><span>    </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-pragma hs-type">Word32</span></a></span><span class="hs-pragma">)</span><span> </span><span class="annot"><a href="GHC.Base.html#."><span class="hs-pragma hs-type">.</span></a></span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#floor"><span class="hs-pragma hs-type">floor</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Float"><span class="hs-pragma hs-type">Float</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span class="hs-pragma">)</span><span>
</span><span id="line-480"></span><span class="annot"><span class="hs-pragma">&quot;ceiling/Float-&gt;Word32&quot;</span></span><span>
</span><span id="line-481"></span><span>    </span><span class="annot"><a href="GHC.Real.html#ceiling"><span class="hs-pragma hs-type">ceiling</span></a></span><span>  </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-pragma hs-type">Word32</span></a></span><span class="hs-pragma">)</span><span> </span><span class="annot"><a href="GHC.Base.html#."><span class="hs-pragma hs-type">.</span></a></span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#ceiling"><span class="hs-pragma hs-type">ceiling</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Float"><span class="hs-pragma hs-type">Float</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span class="hs-pragma">)</span><span>
</span><span id="line-482"></span><span class="annot"><span class="hs-pragma">&quot;round/Float-&gt;Word32&quot;</span></span><span>
</span><span id="line-483"></span><span>    </span><span class="annot"><a href="GHC.Real.html#round"><span class="hs-pragma hs-type">round</span></a></span><span>    </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-pragma hs-type">Word32</span></a></span><span class="hs-pragma">)</span><span> </span><span class="annot"><a href="GHC.Base.html#."><span class="hs-pragma hs-type">.</span></a></span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#round"><span class="hs-pragma hs-type">round</span></a></span><span>  </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Float"><span class="hs-pragma hs-type">Float</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span class="hs-pragma">)</span><span>
</span><span id="line-484"></span><span>  </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-485"></span><span>
</span><span id="line-486"></span><span class="hs-pragma">{-# RULES</span><span>
</span><span id="line-487"></span><span class="annot"><span class="hs-pragma">&quot;properFraction/Double-&gt;(Word32,Double)&quot;</span></span><span>
</span><span id="line-488"></span><span>    </span><span class="annot"><a href="GHC.Real.html#properFraction"><span class="hs-pragma hs-type">properFraction</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">\</span><span id="local-6989586621679496712"><span class="annot"><a href="#local-6989586621679496712"><span class="hs-pragma hs-var">x</span></a></span></span><span> </span><span class="hs-pragma">-&gt;</span><span>
</span><span id="line-489"></span><span>                      </span><span class="hs-pragma">case</span><span> </span><span class="annot"><a href="GHC.Real.html#properFraction"><span class="hs-pragma hs-type">properFraction</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679496712"><span class="hs-pragma hs-type">x</span></a></span><span> </span><span class="hs-pragma">of</span><span> </span><span class="hs-pragma">{</span><span>
</span><span id="line-490"></span><span>                        </span><span class="hs-pragma">(</span><span id="local-6989586621679496711"><span class="annot"><a href="#local-6989586621679496711"><span class="hs-pragma hs-var">n</span></a></span></span><span class="hs-pragma">,</span><span> </span><span id="local-6989586621679496710"><span class="annot"><a href="#local-6989586621679496710"><span class="hs-pragma hs-var">y</span></a></span></span><span class="hs-pragma">)</span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="hs-pragma">(</span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-pragma hs-type">Word32</span></a></span><span class="hs-pragma">)</span><span> </span><span class="annot"><a href="#local-6989586621679496711"><span class="hs-pragma hs-type">n</span></a></span><span class="hs-pragma">,</span><span> </span><span class="annot"><a href="#local-6989586621679496710"><span class="hs-pragma hs-type">y</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Double"><span class="hs-pragma hs-type">Double</span></a></span><span class="hs-pragma">)</span><span> </span><span class="hs-pragma">}</span><span>
</span><span id="line-491"></span><span class="annot"><span class="hs-pragma">&quot;truncate/Double-&gt;Word32&quot;</span></span><span>
</span><span id="line-492"></span><span>    </span><span class="annot"><a href="GHC.Real.html#truncate"><span class="hs-pragma hs-type">truncate</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-pragma hs-type">Word32</span></a></span><span class="hs-pragma">)</span><span> </span><span class="annot"><a href="GHC.Base.html#."><span class="hs-pragma hs-type">.</span></a></span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#truncate"><span class="hs-pragma hs-type">truncate</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Double"><span class="hs-pragma hs-type">Double</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span class="hs-pragma">)</span><span>
</span><span id="line-493"></span><span class="annot"><span class="hs-pragma">&quot;floor/Double-&gt;Word32&quot;</span></span><span>
</span><span id="line-494"></span><span>    </span><span class="annot"><a href="GHC.Real.html#floor"><span class="hs-pragma hs-type">floor</span></a></span><span>    </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-pragma hs-type">Word32</span></a></span><span class="hs-pragma">)</span><span> </span><span class="annot"><a href="GHC.Base.html#."><span class="hs-pragma hs-type">.</span></a></span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#floor"><span class="hs-pragma hs-type">floor</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Double"><span class="hs-pragma hs-type">Double</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span class="hs-pragma">)</span><span>
</span><span id="line-495"></span><span class="annot"><span class="hs-pragma">&quot;ceiling/Double-&gt;Word32&quot;</span></span><span>
</span><span id="line-496"></span><span>    </span><span class="annot"><a href="GHC.Real.html#ceiling"><span class="hs-pragma hs-type">ceiling</span></a></span><span>  </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-pragma hs-type">Word32</span></a></span><span class="hs-pragma">)</span><span> </span><span class="annot"><a href="GHC.Base.html#."><span class="hs-pragma hs-type">.</span></a></span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#ceiling"><span class="hs-pragma hs-type">ceiling</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Double"><span class="hs-pragma hs-type">Double</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span class="hs-pragma">)</span><span>
</span><span id="line-497"></span><span class="annot"><span class="hs-pragma">&quot;round/Double-&gt;Word32&quot;</span></span><span>
</span><span id="line-498"></span><span>    </span><span class="annot"><a href="GHC.Real.html#round"><span class="hs-pragma hs-type">round</span></a></span><span>    </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-pragma hs-type">Word32</span></a></span><span class="hs-pragma">)</span><span> </span><span class="annot"><a href="GHC.Base.html#."><span class="hs-pragma hs-type">.</span></a></span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#round"><span class="hs-pragma hs-type">round</span></a></span><span>  </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Double"><span class="hs-pragma hs-type">Double</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-pragma hs-type">Int</span></a></span><span class="hs-pragma">)</span><span>
</span><span id="line-499"></span><span>  </span><span class="hs-pragma">#-}</span><span class="hs-cpp">

#endif
</span><span>
</span><span id="line-503"></span><span class="hs-keyword">data</span><span> </span><span class="hs-pragma">{-# CTYPE</span><span> </span><span class="hs-pragma">&quot;HsWord32&quot;</span><span> </span><span class="hs-pragma">#-}</span><span> </span><span id="Word32"><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-identifier hs-var">Word32</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="W32%23"><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-var">W32#</span></a></span></span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Word%23"><span class="hs-identifier hs-type">Word#</span></a></span><span>
</span><span id="line-504"></span><span class="hs-comment">-- ^ 32-bit unsigned integer type</span><span>
</span><span id="line-505"></span><span>
</span><span id="line-506"></span><span class="hs-comment">-- See GHC.Classes#matching_overloaded_methods_in_rules</span><span>
</span><span id="line-507"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-508"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Classes.html#Eq"><span class="hs-identifier hs-type">Eq</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-identifier hs-type">Word32</span></a></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-509"></span><span>    </span><span id="local-6989586621679496705"><span class="annot"><span class="annottext">== :: Word32 -&gt; Word32 -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%3D%3D"><span class="hs-operator hs-var hs-var hs-var hs-var">(==)</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Bool
</span><a href="GHC.Word.html#eqWord32"><span class="hs-identifier hs-var">eqWord32</span></a></span><span>
</span><span id="line-510"></span><span>    </span><span id="local-6989586621679496704"><span class="annot"><span class="annottext">/= :: Word32 -&gt; Word32 -&gt; Bool
</span><a href="#local-6989586621679496704"><span class="hs-operator hs-var hs-var hs-var hs-var">(/=)</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Bool
</span><a href="GHC.Word.html#neWord32"><span class="hs-identifier hs-var">neWord32</span></a></span><span>
</span><span id="line-511"></span><span>
</span><span id="line-512"></span><span class="annot"><a href="GHC.Word.html#eqWord32"><span class="hs-identifier hs-type">eqWord32</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#neWord32"><span class="hs-identifier hs-type">neWord32</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-identifier hs-type">Word32</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-identifier hs-type">Word32</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Bool"><span class="hs-identifier hs-type">Bool</span></a></span><span>
</span><span id="line-513"></span><span id="eqWord32"><span class="annot"><span class="annottext">eqWord32 :: Word32 -&gt; Word32 -&gt; Bool
</span><a href="GHC.Word.html#eqWord32"><span class="hs-identifier hs-var hs-var">eqWord32</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496703"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496703"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496702"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496702"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496703"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#eqWord%23"><span class="hs-operator hs-var">`eqWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496702"><span class="hs-identifier hs-var">y</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-514"></span><span id="neWord32"><span class="annot"><span class="annottext">neWord32 :: Word32 -&gt; Word32 -&gt; Bool
</span><a href="GHC.Word.html#neWord32"><span class="hs-identifier hs-var hs-var">neWord32</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496701"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496701"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496700"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496700"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496701"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#neWord%23"><span class="hs-operator hs-var">`neWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496700"><span class="hs-identifier hs-var">y</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-515"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">[</span><span class="hs-pragma">1</span><span class="hs-pragma">]</span><span> </span><span class="annot"><a href="GHC.Word.html#eqWord32"><span class="hs-pragma hs-type">eqWord32</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-516"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">[</span><span class="hs-pragma">1</span><span class="hs-pragma">]</span><span> </span><span class="annot"><a href="GHC.Word.html#neWord32"><span class="hs-pragma hs-type">neWord32</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-517"></span><span>
</span><span id="line-518"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-519"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679496688"><span id="local-6989586621679496690"><span id="local-6989586621679496696"><span class="annot"><a href="../../ghc-prim/src/GHC.Classes.html#Ord"><span class="hs-identifier hs-type">Ord</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-identifier hs-type">Word32</span></a></span></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-520"></span><span>    </span><span id="local-6989586621679496687"><span class="annot"><span class="annottext">&lt; :: Word32 -&gt; Word32 -&gt; Bool
</span><a href="#local-6989586621679496687"><span class="hs-operator hs-var hs-var hs-var hs-var">(&lt;)</span></a></span></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Bool
</span><a href="GHC.Word.html#ltWord32"><span class="hs-identifier hs-var">ltWord32</span></a></span><span>
</span><span id="line-521"></span><span>    </span><span id="local-6989586621679496686"><span class="annot"><span class="annottext">&lt;= :: Word32 -&gt; Word32 -&gt; Bool
</span><a href="#local-6989586621679496686"><span class="hs-operator hs-var hs-var hs-var hs-var">(&lt;=)</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Bool
</span><a href="GHC.Word.html#leWord32"><span class="hs-identifier hs-var">leWord32</span></a></span><span>
</span><span id="line-522"></span><span>    </span><span id="local-6989586621679496685"><span class="annot"><span class="annottext">&gt;= :: Word32 -&gt; Word32 -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%3E%3D"><span class="hs-operator hs-var hs-var hs-var hs-var">(&gt;=)</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Bool
</span><a href="GHC.Word.html#geWord32"><span class="hs-identifier hs-var">geWord32</span></a></span><span>
</span><span id="line-523"></span><span>    </span><span id="local-6989586621679496684"><span class="annot"><span class="annottext">&gt; :: Word32 -&gt; Word32 -&gt; Bool
</span><a href="#local-6989586621679496684"><span class="hs-operator hs-var hs-var hs-var hs-var">(&gt;)</span></a></span></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Bool
</span><a href="GHC.Word.html#gtWord32"><span class="hs-identifier hs-var">gtWord32</span></a></span><span>
</span><span id="line-524"></span><span>
</span><span id="line-525"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">[</span><span class="hs-pragma">1</span><span class="hs-pragma">]</span><span> </span><span class="annot"><a href="GHC.Word.html#gtWord32"><span class="hs-pragma hs-type">gtWord32</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-526"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">[</span><span class="hs-pragma">1</span><span class="hs-pragma">]</span><span> </span><span class="annot"><a href="GHC.Word.html#geWord32"><span class="hs-pragma hs-type">geWord32</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-527"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">[</span><span class="hs-pragma">1</span><span class="hs-pragma">]</span><span> </span><span class="annot"><a href="GHC.Word.html#ltWord32"><span class="hs-pragma hs-type">ltWord32</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-528"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">[</span><span class="hs-pragma">1</span><span class="hs-pragma">]</span><span> </span><span class="annot"><a href="GHC.Word.html#leWord32"><span class="hs-pragma hs-type">leWord32</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-529"></span><span class="annot"><a href="GHC.Word.html#gtWord32"><span class="hs-identifier hs-type">gtWord32</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#geWord32"><span class="hs-identifier hs-type">geWord32</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#ltWord32"><span class="hs-identifier hs-type">ltWord32</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#leWord32"><span class="hs-identifier hs-type">leWord32</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-identifier hs-type">Word32</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-identifier hs-type">Word32</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Bool"><span class="hs-identifier hs-type">Bool</span></a></span><span>
</span><span id="line-530"></span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496683"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496683"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span id="gtWord32"><span class="annot"><span class="annottext">gtWord32 :: Word32 -&gt; Word32 -&gt; Bool
</span><a href="GHC.Word.html#gtWord32"><span class="hs-operator hs-var hs-var">`gtWord32`</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496682"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496682"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496683"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#gtWord%23"><span class="hs-operator hs-var">`gtWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496682"><span class="hs-identifier hs-var">y</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-531"></span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496681"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496681"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span id="geWord32"><span class="annot"><span class="annottext">geWord32 :: Word32 -&gt; Word32 -&gt; Bool
</span><a href="GHC.Word.html#geWord32"><span class="hs-operator hs-var hs-var">`geWord32`</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496680"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496680"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496681"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#geWord%23"><span class="hs-operator hs-var">`geWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496680"><span class="hs-identifier hs-var">y</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-532"></span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496679"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496679"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span id="ltWord32"><span class="annot"><span class="annottext">ltWord32 :: Word32 -&gt; Word32 -&gt; Bool
</span><a href="GHC.Word.html#ltWord32"><span class="hs-operator hs-var hs-var">`ltWord32`</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496678"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496678"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496679"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#ltWord%23"><span class="hs-operator hs-var">`ltWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496678"><span class="hs-identifier hs-var">y</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-533"></span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496677"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496677"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span id="leWord32"><span class="annot"><span class="annottext">leWord32 :: Word32 -&gt; Word32 -&gt; Bool
</span><a href="GHC.Word.html#leWord32"><span class="hs-operator hs-var hs-var">`leWord32`</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496676"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496676"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496677"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#leWord%23"><span class="hs-operator hs-var">`leWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496676"><span class="hs-identifier hs-var">y</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-534"></span><span>
</span><span id="line-535"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-536"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="GHC.Num.html#Num"><span class="hs-identifier hs-type">Num</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-identifier hs-type">Word32</span></a></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-537"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496667"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496667"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496666"><span class="annot"><span class="annottext">+ :: Word32 -&gt; Word32 -&gt; Word32
</span><a href="#local-6989586621679496666"><span class="hs-operator hs-var hs-var hs-var hs-var">+</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496665"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496665"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word32
</span><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-var">W32#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#narrow32Word%23"><span class="hs-identifier hs-var">narrow32Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496667"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#plusWord%23"><span class="hs-operator hs-var">`plusWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496665"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-538"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496664"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496664"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496663"><span class="annot"><span class="annottext">- :: Word32 -&gt; Word32 -&gt; Word32
</span><a href="GHC.Num.html#-"><span class="hs-glyph hs-var hs-var hs-var hs-var">-</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496662"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496662"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word32
</span><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-var">W32#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#narrow32Word%23"><span class="hs-identifier hs-var">narrow32Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496664"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#minusWord%23"><span class="hs-operator hs-var">`minusWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496662"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-539"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496661"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496661"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496660"><span class="annot"><span class="annottext">* :: Word32 -&gt; Word32 -&gt; Word32
</span><a href="#local-6989586621679496660"><span class="hs-operator hs-var hs-var hs-var hs-var">*</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496659"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496659"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word32
</span><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-var">W32#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#narrow32Word%23"><span class="hs-identifier hs-var">narrow32Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496661"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#timesWord%23"><span class="hs-operator hs-var">`timesWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496659"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-540"></span><span>    </span><span id="local-6989586621679496658"><span class="annot"><span class="annottext">negate :: Word32 -&gt; Word32
</span><a href="GHC.Num.html#negate"><span class="hs-identifier hs-var hs-var hs-var hs-var">negate</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496657"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496657"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span>       </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word32
</span><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-var">W32#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#narrow32Word%23"><span class="hs-identifier hs-var">narrow32Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#int2Word%23"><span class="hs-identifier hs-var">int2Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#negateInt%23"><span class="hs-identifier hs-var">negateInt#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#word2Int%23"><span class="hs-identifier hs-var">word2Int#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496657"><span class="hs-identifier hs-var">x#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-541"></span><span>    </span><span id="local-6989586621679496656"><span class="annot"><span class="annottext">abs :: Word32 -&gt; Word32
</span><a href="#local-6989586621679496656"><span class="hs-identifier hs-var hs-var hs-var hs-var">abs</span></a></span></span><span> </span><span id="local-6989586621679496655"><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496655"><span class="hs-identifier hs-var">x</span></a></span></span><span>                  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496655"><span class="hs-identifier hs-var">x</span></a></span><span>
</span><span id="line-542"></span><span>    </span><span id="local-6989586621679496650"><span class="annot"><span class="annottext">signum :: Word32 -&gt; Word32
</span><a href="#local-6989586621679496650"><span class="hs-identifier hs-var hs-var hs-var hs-var">signum</span></a></span></span><span> </span><span class="annot"><span class="annottext">Word32
</span><span class="hs-number">0</span></span><span>               </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word32
</span><span class="hs-number">0</span></span><span>
</span><span id="line-543"></span><span>    </span><span class="annot"><a href="GHC.Num.html#signum"><span class="hs-identifier hs-var">signum</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
</span><span class="hs-identifier">_</span></span><span>               </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word32
</span><span class="hs-number">1</span></span><span>
</span><span id="line-544"></span><span>    </span><span id="local-6989586621679496649"><span class="annot"><span class="annottext">fromInteger :: Integer -&gt; Word32
</span><a href="GHC.Num.html#fromInteger"><span class="hs-identifier hs-var hs-var hs-var hs-var">fromInteger</span></a></span></span><span> </span><span id="local-6989586621679496648"><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679496648"><span class="hs-identifier hs-var">i</span></a></span></span><span>          </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word32
</span><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-var">W32#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#narrow32Word%23"><span class="hs-identifier hs-var">narrow32Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Integer -&gt; Word#
</span><a href="../../ghc-bignum/src/GHC.Num.Integer.html#integerToWord%23"><span class="hs-identifier hs-var">integerToWord#</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679496648"><span class="hs-identifier hs-var">i</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-545"></span><span>
</span><span id="line-546"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-547"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679496638"><span id="local-6989586621679496640"><span class="annot"><a href="GHC.Enum.html#Enum"><span class="hs-identifier hs-type">Enum</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-identifier hs-type">Word32</span></a></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-548"></span><span>    </span><span id="local-6989586621679496632"><span class="annot"><span class="annottext">succ :: Word32 -&gt; Word32
</span><a href="#local-6989586621679496632"><span class="hs-identifier hs-var hs-var hs-var hs-var">succ</span></a></span></span><span> </span><span id="local-6989586621679496631"><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496631"><span class="hs-identifier hs-var">x</span></a></span></span><span>
</span><span id="line-549"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496631"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%2F%3D"><span class="hs-operator hs-var">/=</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
forall a. Bounded a =&gt; a
</span><a href="GHC.Enum.html#maxBound"><span class="hs-identifier hs-var">maxBound</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496631"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Word32
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="GHC.Num.html#%2B"><span class="hs-operator hs-var">+</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
</span><span class="hs-number">1</span></span><span>
</span><span id="line-550"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; Word32
forall a. String -&gt; a
</span><a href="GHC.Enum.html#succError"><span class="hs-identifier hs-var">succError</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;Word32&quot;</span></span><span>
</span><span id="line-551"></span><span>    </span><span id="local-6989586621679496626"><span class="annot"><span class="annottext">pred :: Word32 -&gt; Word32
</span><a href="#local-6989586621679496626"><span class="hs-identifier hs-var hs-var hs-var hs-var">pred</span></a></span></span><span> </span><span id="local-6989586621679496625"><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496625"><span class="hs-identifier hs-var">x</span></a></span></span><span>
</span><span id="line-552"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496625"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%2F%3D"><span class="hs-operator hs-var">/=</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
forall a. Bounded a =&gt; a
</span><a href="GHC.Enum.html#minBound"><span class="hs-identifier hs-var">minBound</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496625"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Word32
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="GHC.Num.html#-"><span class="hs-glyph hs-var">-</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
</span><span class="hs-number">1</span></span><span>
</span><span id="line-553"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; Word32
forall a. String -&gt; a
</span><a href="GHC.Enum.html#predError"><span class="hs-identifier hs-var">predError</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;Word32&quot;</span></span><span>
</span><span id="line-554"></span><span>    </span><span id="local-6989586621679496614"><span class="annot"><span class="annottext">toEnum :: Int -&gt; Word32
</span><a href="#local-6989586621679496614"><span class="hs-identifier hs-var hs-var hs-var hs-var">toEnum</span></a></span></span><span> </span><span id="local-6989586621679496613"><span class="annot"><span class="annottext">i :: Int
</span><a href="#local-6989586621679496613"><span class="hs-identifier hs-var">i</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-type">I#</span></a></span><span> </span><span id="local-6989586621679496612"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496612"><span class="hs-identifier hs-var">i#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-555"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679496613"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%3E%3D"><span class="hs-operator hs-var">&gt;=</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">0</span></span><span class="hs-cpp">
#if WORD_SIZE_IN_BITS &gt; 32
</span><span>          </span><span class="annot"><span class="annottext">Bool -&gt; Bool -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%26%26"><span class="hs-operator hs-var">&amp;&amp;</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679496613"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%3C%3D"><span class="hs-operator hs-var">&lt;=</span></a></span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Int
forall a b. (Integral a, Num b) =&gt; a -&gt; b
</span><a href="GHC.Real.html#fromIntegral"><span class="hs-identifier hs-var">fromIntegral</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word32
forall a. Bounded a =&gt; a
</span><a href="GHC.Enum.html#maxBound"><span class="hs-identifier hs-var">maxBound</span></a></span><span class="hs-glyph">::</span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-identifier hs-type">Word32</span></a></span><span class="hs-special">)</span><span class="hs-cpp">
#endif
</span><span>                        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word32
</span><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-var">W32#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#int2Word%23"><span class="hs-identifier hs-var">int2Word#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496612"><span class="hs-identifier hs-var">i#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-560"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; Int -&gt; (Word32, Word32) -&gt; Word32
forall a b. Show a =&gt; String -&gt; Int -&gt; (a, a) -&gt; b
</span><a href="GHC.Enum.html#toEnumError"><span class="hs-identifier hs-var">toEnumError</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;Word32&quot;</span></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679496613"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word32
forall a. Bounded a =&gt; a
</span><a href="GHC.Enum.html#minBound"><span class="hs-identifier hs-var">minBound</span></a></span><span class="hs-glyph">::</span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-identifier hs-type">Word32</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">Word32
forall a. Bounded a =&gt; a
</span><a href="GHC.Enum.html#maxBound"><span class="hs-identifier hs-var">maxBound</span></a></span><span class="hs-glyph">::</span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-identifier hs-type">Word32</span></a></span><span class="hs-special">)</span><span class="hs-cpp">
#if WORD_SIZE_IN_BITS == 32
</span><span>    </span><span class="hs-identifier">fromEnum</span><span> </span><span class="hs-identifier">x</span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="hs-identifier">W32#</span><span> </span><span class="hs-identifier">x#</span><span class="hs-special">)</span><span>
</span><span id="line-563"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">x</span><span> </span><span class="hs-operator">&lt;=</span><span> </span><span class="hs-identifier">fromIntegral</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">maxBound</span><span class="hs-glyph">::</span><span class="hs-identifier">Int</span><span class="hs-special">)</span><span>
</span><span id="line-564"></span><span>                        </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">I#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">word2Int#</span><span> </span><span class="hs-identifier">x#</span><span class="hs-special">)</span><span>
</span><span id="line-565"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">otherwise</span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">fromEnumError</span><span> </span><span class="hs-string">&quot;Word32&quot;</span><span> </span><span class="hs-identifier">x</span><span>
</span><span id="line-566"></span><span>    </span><span class="hs-identifier">enumFrom</span><span>            </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">integralEnumFrom</span><span>
</span><span id="line-567"></span><span>    </span><span class="hs-identifier">enumFromThen</span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">integralEnumFromThen</span><span>
</span><span id="line-568"></span><span>    </span><span class="hs-identifier">enumFromTo</span><span>          </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">integralEnumFromTo</span><span>
</span><span id="line-569"></span><span>    </span><span class="hs-identifier">enumFromThenTo</span><span>      </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">integralEnumFromThenTo</span><span class="hs-cpp">
#else
</span><span>    </span><span id="local-6989586621679496611"><span class="annot"><span class="annottext">fromEnum :: Word32 -&gt; Int
</span><a href="#local-6989586621679496611"><span class="hs-identifier hs-var hs-var hs-var hs-var">fromEnum</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496610"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496610"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int
</span><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-var">I#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#word2Int%23"><span class="hs-identifier hs-var">word2Int#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496610"><span class="hs-identifier hs-var">x#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-572"></span><span>    </span><span class="hs-comment">-- See Note [Stable Unfolding for list producers] in GHC.Enum</span><span>
</span><span id="line-573"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="GHC.Enum.html#enumFrom"><span class="hs-pragma hs-type">enumFrom</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-574"></span><span>    </span><span id="local-6989586621679496607"><span class="annot"><span class="annottext">enumFrom :: Word32 -&gt; [Word32]
</span><a href="GHC.Enum.html#enumFrom"><span class="hs-identifier hs-var hs-var hs-var hs-var">enumFrom</span></a></span></span><span>            </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; [Word32]
forall a. (Enum a, Bounded a) =&gt; a -&gt; [a]
</span><a href="GHC.Enum.html#boundedEnumFrom"><span class="hs-identifier hs-var">boundedEnumFrom</span></a></span><span>
</span><span id="line-575"></span><span>    </span><span class="hs-comment">-- See Note [Stable Unfolding for list producers] in GHC.Enum</span><span>
</span><span id="line-576"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="GHC.Enum.html#enumFromThen"><span class="hs-pragma hs-type">enumFromThen</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-577"></span><span>    </span><span id="local-6989586621679496604"><span class="annot"><span class="annottext">enumFromThen :: Word32 -&gt; Word32 -&gt; [Word32]
</span><a href="GHC.Enum.html#enumFromThen"><span class="hs-identifier hs-var hs-var hs-var hs-var">enumFromThen</span></a></span></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; [Word32]
forall a. (Enum a, Bounded a) =&gt; a -&gt; a -&gt; [a]
</span><a href="GHC.Enum.html#boundedEnumFromThen"><span class="hs-identifier hs-var">boundedEnumFromThen</span></a></span><span class="hs-cpp">
#endif
</span><span>
</span><span id="line-580"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-581"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="GHC.Real.html#Integral"><span class="hs-identifier hs-type">Integral</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-identifier hs-type">Word32</span></a></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-582"></span><span>    </span><span id="local-6989586621679496589"><span class="annot"><span class="annottext">quot :: Word32 -&gt; Word32 -&gt; Word32
</span><a href="#local-6989586621679496589"><span class="hs-identifier hs-var hs-var hs-var hs-var">quot</span></a></span></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496588"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496588"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496587"><span class="annot"><span class="annottext">y :: Word32
</span><a href="#local-6989586621679496587"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496586"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496586"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-583"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496587"><span class="hs-identifier hs-var">y</span></a></span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%2F%3D"><span class="hs-operator hs-var">/=</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
</span><span class="hs-number">0</span></span><span>                    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word32
</span><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-var">W32#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496588"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#quotWord%23"><span class="hs-operator hs-var">`quotWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496586"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-584"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>                 </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word32
forall a. a
</span><a href="GHC.Real.html#divZeroError"><span class="hs-identifier hs-var">divZeroError</span></a></span><span>
</span><span id="line-585"></span><span>    </span><span id="local-6989586621679496583"><span class="annot"><span class="annottext">rem :: Word32 -&gt; Word32 -&gt; Word32
</span><a href="#local-6989586621679496583"><span class="hs-identifier hs-var hs-var hs-var hs-var">rem</span></a></span></span><span>     </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496582"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496582"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496581"><span class="annot"><span class="annottext">y :: Word32
</span><a href="#local-6989586621679496581"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496580"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496580"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-586"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496581"><span class="hs-identifier hs-var">y</span></a></span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%2F%3D"><span class="hs-operator hs-var">/=</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
</span><span class="hs-number">0</span></span><span>                    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word32
</span><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-var">W32#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496582"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#remWord%23"><span class="hs-operator hs-var">`remWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496580"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-587"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>                 </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word32
forall a. a
</span><a href="GHC.Real.html#divZeroError"><span class="hs-identifier hs-var">divZeroError</span></a></span><span>
</span><span id="line-588"></span><span>    </span><span id="local-6989586621679496577"><span class="annot"><span class="annottext">div :: Word32 -&gt; Word32 -&gt; Word32
</span><a href="#local-6989586621679496577"><span class="hs-identifier hs-var hs-var hs-var hs-var">div</span></a></span></span><span>     </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496576"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496576"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496575"><span class="annot"><span class="annottext">y :: Word32
</span><a href="#local-6989586621679496575"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496574"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496574"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-589"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496575"><span class="hs-identifier hs-var">y</span></a></span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%2F%3D"><span class="hs-operator hs-var">/=</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
</span><span class="hs-number">0</span></span><span>                    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word32
</span><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-var">W32#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496576"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#quotWord%23"><span class="hs-operator hs-var">`quotWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496574"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-590"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>                 </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word32
forall a. a
</span><a href="GHC.Real.html#divZeroError"><span class="hs-identifier hs-var">divZeroError</span></a></span><span>
</span><span id="line-591"></span><span>    </span><span id="local-6989586621679496571"><span class="annot"><span class="annottext">mod :: Word32 -&gt; Word32 -&gt; Word32
</span><a href="#local-6989586621679496571"><span class="hs-identifier hs-var hs-var hs-var hs-var">mod</span></a></span></span><span>     </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496570"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496570"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496569"><span class="annot"><span class="annottext">y :: Word32
</span><a href="#local-6989586621679496569"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496568"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496568"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-592"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496569"><span class="hs-identifier hs-var">y</span></a></span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%2F%3D"><span class="hs-operator hs-var">/=</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
</span><span class="hs-number">0</span></span><span>                    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word32
</span><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-var">W32#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496570"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#remWord%23"><span class="hs-operator hs-var">`remWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496568"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-593"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>                 </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word32
forall a. a
</span><a href="GHC.Real.html#divZeroError"><span class="hs-identifier hs-var">divZeroError</span></a></span><span>
</span><span id="line-594"></span><span>    </span><span id="local-6989586621679496565"><span class="annot"><span class="annottext">quotRem :: Word32 -&gt; Word32 -&gt; (Word32, Word32)
</span><a href="#local-6989586621679496565"><span class="hs-identifier hs-var hs-var hs-var hs-var">quotRem</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496564"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496564"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496563"><span class="annot"><span class="annottext">y :: Word32
</span><a href="#local-6989586621679496563"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496562"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496562"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-595"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496563"><span class="hs-identifier hs-var">y</span></a></span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%2F%3D"><span class="hs-operator hs-var">/=</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
</span><span class="hs-number">0</span></span><span>                  </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496564"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; (# Word#, Word# #)
</span><a href="../../ghc-prim/src/GHC.Prim.html#quotRemWord%23"><span class="hs-operator hs-var">`quotRemWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496562"><span class="hs-identifier hs-var">y#</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-596"></span><span>                                    </span><span class="hs-special">(#</span><span> </span><span id="local-6989586621679496561"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496561"><span class="hs-identifier hs-var">q</span></a></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621679496560"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496560"><span class="hs-identifier hs-var">r</span></a></span></span><span> </span><span class="hs-special">#)</span><span> </span><span class="hs-glyph">-&gt;</span><span>
</span><span id="line-597"></span><span>                                        </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word32
</span><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-var">W32#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496561"><span class="hs-identifier hs-var">q</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word32
</span><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-var">W32#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496560"><span class="hs-identifier hs-var">r</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-598"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>                 </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(Word32, Word32)
forall a. a
</span><a href="GHC.Real.html#divZeroError"><span class="hs-identifier hs-var">divZeroError</span></a></span><span>
</span><span id="line-599"></span><span>    </span><span id="local-6989586621679496557"><span class="annot"><span class="annottext">divMod :: Word32 -&gt; Word32 -&gt; (Word32, Word32)
</span><a href="#local-6989586621679496557"><span class="hs-identifier hs-var hs-var hs-var hs-var">divMod</span></a></span></span><span>  </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496556"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496556"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496555"><span class="annot"><span class="annottext">y :: Word32
</span><a href="#local-6989586621679496555"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496554"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496554"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-600"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496555"><span class="hs-identifier hs-var">y</span></a></span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%2F%3D"><span class="hs-operator hs-var">/=</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
</span><span class="hs-number">0</span></span><span>                    </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word32
</span><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-var">W32#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496556"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#quotWord%23"><span class="hs-operator hs-var">`quotWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496554"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word32
</span><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-var">W32#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496556"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#remWord%23"><span class="hs-operator hs-var">`remWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496554"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-601"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>                 </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(Word32, Word32)
forall a. a
</span><a href="GHC.Real.html#divZeroError"><span class="hs-identifier hs-var">divZeroError</span></a></span><span>
</span><span id="line-602"></span><span>    </span><span id="local-6989586621679496553"><span class="annot"><span class="annottext">toInteger :: Word32 -&gt; Integer
</span><a href="GHC.Real.html#toInteger"><span class="hs-identifier hs-var hs-var hs-var hs-var">toInteger</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496552"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496552"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span class="hs-cpp">
#if WORD_SIZE_IN_BITS == 32
</span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">isTrue#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">i#</span><span> </span><span class="hs-operator">&gt;=#</span><span> </span><span class="hs-number">0#</span><span class="hs-special">)</span><span>       </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">IS</span><span> </span><span class="hs-identifier">i#</span><span>
</span><span id="line-605"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">otherwise</span><span>                 </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">integerFromWord#</span><span> </span><span class="hs-identifier">x#</span><span>
</span><span id="line-606"></span><span>        </span><span class="hs-keyword">where</span><span>
</span><span id="line-607"></span><span>        </span><span class="hs-glyph">!</span><span class="hs-identifier">i#</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">word2Int#</span><span> </span><span class="hs-identifier">x#</span><span class="hs-cpp">
#else
</span><span>                                    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Integer
</span><a href="../../ghc-bignum/src/GHC.Num.Integer.html#IS"><span class="hs-identifier hs-var">IS</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#word2Int%23"><span class="hs-identifier hs-var">word2Int#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496552"><span class="hs-identifier hs-var">x#</span></a></span><span class="hs-special">)</span><span class="hs-cpp">
#endif
</span><span>
</span><span id="line-612"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-613"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679496523"><span id="local-6989586621679496525"><span id="local-6989586621679496535"><span id="local-6989586621679496537"><span id="local-6989586621679496539"><span id="local-6989586621679496542"><span class="annot"><a href="Data.Bits.html#Bits"><span class="hs-identifier hs-type">Bits</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-identifier hs-type">Word32</span></a></span></span></span></span></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-614"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="Data.Bits.html#shift"><span class="hs-pragma hs-type">shift</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-615"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="Data.Bits.html#bit"><span class="hs-pragma hs-type">bit</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-616"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="Data.Bits.html#testBit"><span class="hs-pragma hs-type">testBit</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-617"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="Data.Bits.html#popCount"><span class="hs-pragma hs-type">popCount</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-618"></span><span>
</span><span id="line-619"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496521"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496521"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496520"><span class="annot"><span class="annottext">.&amp;. :: Word32 -&gt; Word32 -&gt; Word32
</span><a href="#local-6989586621679496520"><span class="hs-operator hs-var hs-var hs-var hs-var">.&amp;.</span></a></span></span><span>   </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496519"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496519"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word32
</span><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-var">W32#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496521"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#and%23"><span class="hs-operator hs-var">`and#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496519"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-620"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496518"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496518"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496517"><span class="annot"><span class="annottext">.|. :: Word32 -&gt; Word32 -&gt; Word32
</span><a href="#local-6989586621679496517"><span class="hs-operator hs-var hs-var hs-var hs-var">.|.</span></a></span></span><span>   </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496516"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496516"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word32
</span><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-var">W32#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496518"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#or%23"><span class="hs-operator hs-var">`or#`</span></a></span><span>  </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496516"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-621"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496515"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496515"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496514"><span class="annot"><span class="annottext">xor :: Word32 -&gt; Word32 -&gt; Word32
</span><a href="#local-6989586621679496514"><span class="hs-operator hs-var hs-var hs-var hs-var">`xor`</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496513"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496513"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word32
</span><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-var">W32#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496515"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#xor%23"><span class="hs-operator hs-var">`xor#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496513"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-622"></span><span>    </span><span id="local-6989586621679496512"><span class="annot"><span class="annottext">complement :: Word32 -&gt; Word32
</span><a href="#local-6989586621679496512"><span class="hs-identifier hs-var hs-var hs-var hs-var">complement</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496511"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496511"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span>       </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word32
</span><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-var">W32#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496511"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#xor%23"><span class="hs-operator hs-var">`xor#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496510"><span class="hs-identifier hs-var">mb#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-623"></span><span>        </span><span class="hs-keyword">where</span><span> </span><span class="hs-glyph">!</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496510"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496510"><span class="hs-identifier hs-var">mb#</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word32
forall a. Bounded a =&gt; a
</span><a href="GHC.Enum.html#maxBound"><span class="hs-identifier hs-var">maxBound</span></a></span><span>
</span><span id="line-624"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496508"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496508"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496507"><span class="annot"><span class="annottext">shift :: Word32 -&gt; Int -&gt; Word32
</span><a href="#local-6989586621679496507"><span class="hs-operator hs-var hs-var hs-var hs-var">`shift`</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-type">I#</span></a></span><span> </span><span id="local-6989586621679496506"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496506"><span class="hs-identifier hs-var">i#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-625"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496506"><span class="hs-identifier hs-var">i#</span></a></span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#%3E%3D%23"><span class="hs-operator hs-var">&gt;=#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><span class="hs-number">0#</span></span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word32
</span><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-var">W32#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#narrow32Word%23"><span class="hs-identifier hs-var">narrow32Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496508"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="GHC.Base.html#shiftL%23"><span class="hs-operator hs-var">`shiftL#`</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496506"><span class="hs-identifier hs-var">i#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-626"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>            </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word32
</span><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-var">W32#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496508"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="GHC.Base.html#shiftRL%23"><span class="hs-operator hs-var">`shiftRL#`</span></a></span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#negateInt%23"><span class="hs-identifier hs-var">negateInt#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496506"><span class="hs-identifier hs-var">i#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-627"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496505"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496505"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496504"><span class="annot"><span class="annottext">shiftL :: Word32 -&gt; Int -&gt; Word32
</span><a href="#local-6989586621679496504"><span class="hs-operator hs-var hs-var hs-var hs-var">`shiftL`</span></a></span></span><span>       </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-type">I#</span></a></span><span> </span><span id="local-6989586621679496503"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496503"><span class="hs-identifier hs-var">i#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-628"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496503"><span class="hs-identifier hs-var">i#</span></a></span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#%3E%3D%23"><span class="hs-operator hs-var">&gt;=#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><span class="hs-number">0#</span></span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word32
</span><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-var">W32#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#narrow32Word%23"><span class="hs-identifier hs-var">narrow32Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496505"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="GHC.Base.html#shiftL%23"><span class="hs-operator hs-var">`shiftL#`</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496503"><span class="hs-identifier hs-var">i#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-629"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>            </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word32
forall a. a
</span><a href="GHC.Real.html#overflowError"><span class="hs-identifier hs-var">overflowError</span></a></span><span>
</span><span id="line-630"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496502"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496502"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496501"><span class="annot"><span class="annottext">unsafeShiftL :: Word32 -&gt; Int -&gt; Word32
</span><a href="#local-6989586621679496501"><span class="hs-operator hs-var hs-var hs-var hs-var">`unsafeShiftL`</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-type">I#</span></a></span><span> </span><span id="local-6989586621679496500"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496500"><span class="hs-identifier hs-var">i#</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-631"></span><span>        </span><span class="annot"><span class="annottext">Word# -&gt; Word32
</span><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-var">W32#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#narrow32Word%23"><span class="hs-identifier hs-var">narrow32Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496502"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#uncheckedShiftL%23"><span class="hs-operator hs-var">`uncheckedShiftL#`</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496500"><span class="hs-identifier hs-var">i#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-632"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496499"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496499"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496498"><span class="annot"><span class="annottext">shiftR :: Word32 -&gt; Int -&gt; Word32
</span><a href="#local-6989586621679496498"><span class="hs-operator hs-var hs-var hs-var hs-var">`shiftR`</span></a></span></span><span>       </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-type">I#</span></a></span><span> </span><span id="local-6989586621679496497"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496497"><span class="hs-identifier hs-var">i#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-633"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496497"><span class="hs-identifier hs-var">i#</span></a></span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#%3E%3D%23"><span class="hs-operator hs-var">&gt;=#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><span class="hs-number">0#</span></span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word32
</span><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-var">W32#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496499"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="GHC.Base.html#shiftRL%23"><span class="hs-operator hs-var">`shiftRL#`</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496497"><span class="hs-identifier hs-var">i#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-634"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>            </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word32
forall a. a
</span><a href="GHC.Real.html#overflowError"><span class="hs-identifier hs-var">overflowError</span></a></span><span>
</span><span id="line-635"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496496"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496496"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496495"><span class="annot"><span class="annottext">unsafeShiftR :: Word32 -&gt; Int -&gt; Word32
</span><a href="#local-6989586621679496495"><span class="hs-operator hs-var hs-var hs-var hs-var">`unsafeShiftR`</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-type">I#</span></a></span><span> </span><span id="local-6989586621679496494"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496494"><span class="hs-identifier hs-var">i#</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word32
</span><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-var">W32#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496496"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#uncheckedShiftRL%23"><span class="hs-operator hs-var">`uncheckedShiftRL#`</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496494"><span class="hs-identifier hs-var">i#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-636"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496493"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496493"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496492"><span class="annot"><span class="annottext">rotate :: Word32 -&gt; Int -&gt; Word32
</span><a href="#local-6989586621679496492"><span class="hs-operator hs-var hs-var hs-var hs-var">`rotate`</span></a></span></span><span>       </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-type">I#</span></a></span><span> </span><span id="local-6989586621679496491"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496491"><span class="hs-identifier hs-var">i#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-637"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496490"><span class="hs-identifier hs-var">i'#</span></a></span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#%3D%3D%23"><span class="hs-operator hs-var">==#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><span class="hs-number">0#</span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word32
</span><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-var">W32#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496493"><span class="hs-identifier hs-var">x#</span></a></span><span>
</span><span id="line-638"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word32
</span><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-var">W32#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#narrow32Word%23"><span class="hs-identifier hs-var">narrow32Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496493"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#uncheckedShiftL%23"><span class="hs-operator hs-var">`uncheckedShiftL#`</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496490"><span class="hs-identifier hs-var">i'#</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#or%23"><span class="hs-operator hs-var">`or#`</span></a></span><span>
</span><span id="line-639"></span><span>                                            </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496493"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#uncheckedShiftRL%23"><span class="hs-operator hs-var">`uncheckedShiftRL#`</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int#
</span><span class="hs-number">32#</span></span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#-%23"><span class="hs-operator hs-var">-#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496490"><span class="hs-identifier hs-var">i'#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-640"></span><span>        </span><span class="hs-keyword">where</span><span>
</span><span id="line-641"></span><span>        </span><span class="hs-glyph">!</span><span id="local-6989586621679496490"><span class="annot"><span class="annottext">i'# :: Int#
</span><a href="#local-6989586621679496490"><span class="hs-identifier hs-var hs-var">i'#</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#word2Int%23"><span class="hs-identifier hs-var">word2Int#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#int2Word%23"><span class="hs-identifier hs-var">int2Word#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496491"><span class="hs-identifier hs-var">i#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#and%23"><span class="hs-operator hs-var">`and#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><span class="hs-number">31##</span></span><span class="hs-special">)</span><span>
</span><span id="line-642"></span><span>    </span><span id="local-6989586621679496487"><span class="annot"><span class="annottext">bitSizeMaybe :: Word32 -&gt; Maybe Int
</span><a href="#local-6989586621679496487"><span class="hs-identifier hs-var hs-var hs-var hs-var">bitSizeMaybe</span></a></span></span><span> </span><span id="local-6989586621679496486"><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496486"><span class="hs-identifier hs-var">i</span></a></span></span><span>            </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Maybe Int
forall a. a -&gt; Maybe a
</span><a href="GHC.Maybe.html#Just"><span class="hs-identifier hs-var">Just</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word32 -&gt; Int
forall b. FiniteBits b =&gt; b -&gt; Int
</span><a href="Data.Bits.html#finiteBitSize"><span class="hs-identifier hs-var">finiteBitSize</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496486"><span class="hs-identifier hs-var">i</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-643"></span><span>    </span><span id="local-6989586621679496484"><span class="annot"><span class="annottext">bitSize :: Word32 -&gt; Int
</span><a href="#local-6989586621679496484"><span class="hs-identifier hs-var hs-var hs-var hs-var">bitSize</span></a></span></span><span> </span><span id="local-6989586621679496483"><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496483"><span class="hs-identifier hs-var">i</span></a></span></span><span>                 </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Int
forall b. FiniteBits b =&gt; b -&gt; Int
</span><a href="Data.Bits.html#finiteBitSize"><span class="hs-identifier hs-var">finiteBitSize</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496483"><span class="hs-identifier hs-var">i</span></a></span><span>
</span><span id="line-644"></span><span>    </span><span id="local-6989586621679496482"><span class="annot"><span class="annottext">isSigned :: Word32 -&gt; Bool
</span><a href="#local-6989586621679496482"><span class="hs-identifier hs-var hs-var hs-var hs-var">isSigned</span></a></span></span><span> </span><span class="annot"><span class="annottext">Word32
</span><span class="hs-identifier">_</span></span><span>                </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#False"><span class="hs-identifier hs-var">False</span></a></span><span>
</span><span id="line-645"></span><span>    </span><span id="local-6989586621679496481"><span class="annot"><span class="annottext">popCount :: Word32 -&gt; Int
</span><a href="#local-6989586621679496481"><span class="hs-identifier hs-var hs-var hs-var hs-var">popCount</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496480"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496480"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int
</span><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-var">I#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#word2Int%23"><span class="hs-identifier hs-var">word2Int#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#popCnt32%23"><span class="hs-identifier hs-var">popCnt32#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496480"><span class="hs-identifier hs-var">x#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-646"></span><span>    </span><span id="local-6989586621679496477"><span class="annot"><span class="annottext">bit :: Int -&gt; Word32
</span><a href="#local-6989586621679496477"><span class="hs-identifier hs-var hs-var hs-var hs-var">bit</span></a></span></span><span>                       </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Word32
forall a. (Bits a, Num a) =&gt; Int -&gt; a
</span><a href="Data.Bits.html#bitDefault"><span class="hs-identifier hs-var">bitDefault</span></a></span><span>
</span><span id="line-647"></span><span>    </span><span id="local-6989586621679496474"><span class="annot"><span class="annottext">testBit :: Word32 -&gt; Int -&gt; Bool
</span><a href="#local-6989586621679496474"><span class="hs-identifier hs-var hs-var hs-var hs-var">testBit</span></a></span></span><span>                   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Int -&gt; Bool
forall a. (Bits a, Num a) =&gt; a -&gt; Int -&gt; Bool
</span><a href="Data.Bits.html#testBitDefault"><span class="hs-identifier hs-var">testBitDefault</span></a></span><span>
</span><span id="line-648"></span><span>
</span><span id="line-649"></span><span class="hs-comment">-- | @since 4.6.0.0</span><span>
</span><span id="line-650"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="Data.Bits.html#FiniteBits"><span class="hs-identifier hs-type">FiniteBits</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-identifier hs-type">Word32</span></a></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-651"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="Data.Bits.html#countLeadingZeros"><span class="hs-pragma hs-type">countLeadingZeros</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-652"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="Data.Bits.html#countTrailingZeros"><span class="hs-pragma hs-type">countTrailingZeros</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-653"></span><span>    </span><span id="local-6989586621679496468"><span class="annot"><span class="annottext">finiteBitSize :: Word32 -&gt; Int
</span><a href="#local-6989586621679496468"><span class="hs-identifier hs-var hs-var hs-var hs-var">finiteBitSize</span></a></span></span><span> </span><span class="annot"><span class="annottext">Word32
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">32</span></span><span>
</span><span id="line-654"></span><span>    </span><span id="local-6989586621679496467"><span class="annot"><span class="annottext">countLeadingZeros :: Word32 -&gt; Int
</span><a href="#local-6989586621679496467"><span class="hs-identifier hs-var hs-var hs-var hs-var">countLeadingZeros</span></a></span></span><span>  </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496466"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496466"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int
</span><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-var">I#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#word2Int%23"><span class="hs-identifier hs-var">word2Int#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#clz32%23"><span class="hs-identifier hs-var">clz32#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496466"><span class="hs-identifier hs-var">x#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-655"></span><span>    </span><span id="local-6989586621679496465"><span class="annot"><span class="annottext">countTrailingZeros :: Word32 -&gt; Int
</span><a href="#local-6989586621679496465"><span class="hs-identifier hs-var hs-var hs-var hs-var">countTrailingZeros</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496464"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496464"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int
</span><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-var">I#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#word2Int%23"><span class="hs-identifier hs-var">word2Int#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#ctz32%23"><span class="hs-identifier hs-var">ctz32#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496464"><span class="hs-identifier hs-var">x#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-656"></span><span>
</span><span id="line-657"></span><span class="hs-pragma">{-# RULES</span><span>
</span><span id="line-658"></span><span class="annot"><span class="hs-pragma">&quot;fromIntegral/Word8-&gt;Word32&quot;</span></span><span>   </span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">\</span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-pragma hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679496463"><span class="annot"><a href="#local-6989586621679496463"><span class="hs-pragma hs-var">x#</span></a></span></span><span class="hs-pragma">)</span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-pragma hs-type">W32#</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679496463"><span class="hs-pragma hs-type">x#</span></a></span><span>
</span><span id="line-659"></span><span class="annot"><span class="hs-pragma">&quot;fromIntegral/Word16-&gt;Word32&quot;</span></span><span>  </span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">\</span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-pragma hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496462"><span class="annot"><a href="#local-6989586621679496462"><span class="hs-pragma hs-var">x#</span></a></span></span><span class="hs-pragma">)</span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-pragma hs-type">W32#</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679496462"><span class="hs-pragma hs-type">x#</span></a></span><span>
</span><span id="line-660"></span><span class="annot"><span class="hs-pragma">&quot;fromIntegral/Word32-&gt;Word32&quot;</span></span><span>  </span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="annot"><a href="GHC.Base.html#id"><span class="hs-pragma hs-type">id</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-pragma hs-type">Word32</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-pragma hs-type">Word32</span></a></span><span>
</span><span id="line-661"></span><span class="annot"><span class="hs-pragma">&quot;fromIntegral/Word32-&gt;Integer&quot;</span></span><span> </span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="annot"><a href="GHC.Real.html#toInteger"><span class="hs-pragma hs-type">toInteger</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-pragma hs-type">Word32</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Integer.html#Integer"><span class="hs-pragma hs-type">Integer</span></a></span><span>
</span><span id="line-662"></span><span class="annot"><span class="hs-pragma">&quot;fromIntegral/a-&gt;Word32&quot;</span></span><span>       </span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">\</span><span id="local-6989586621679496461"><span class="annot"><a href="#local-6989586621679496461"><span class="hs-pragma hs-var">x</span></a></span></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="hs-pragma">case</span><span> </span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679496461"><span class="hs-pragma hs-type">x</span></a></span><span> </span><span class="hs-pragma">of</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#W%23"><span class="hs-pragma hs-type">W#</span></a></span><span> </span><span id="local-6989586621679496460"><span class="annot"><a href="#local-6989586621679496460"><span class="hs-pragma hs-var">x#</span></a></span></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-pragma hs-type">W32#</span></a></span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#narrow32Word%23"><span class="hs-pragma hs-type">narrow32Word#</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679496460"><span class="hs-pragma hs-type">x#</span></a></span><span class="hs-pragma">)</span><span>
</span><span id="line-663"></span><span class="annot"><span class="hs-pragma">&quot;fromIntegral/Word32-&gt;a&quot;</span></span><span>       </span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">\</span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-pragma hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496459"><span class="annot"><a href="#local-6989586621679496459"><span class="hs-pragma hs-var">x#</span></a></span></span><span class="hs-pragma">)</span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#W%23"><span class="hs-pragma hs-type">W#</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679496459"><span class="hs-pragma hs-type">x#</span></a></span><span class="hs-pragma">)</span><span>
</span><span id="line-664"></span><span>  </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-665"></span><span>
</span><span id="line-666"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-667"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679496454"><span id="local-6989586621679496456"><span class="annot"><a href="GHC.Show.html#Show"><span class="hs-identifier hs-type">Show</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-identifier hs-type">Word32</span></a></span></span></span><span> </span><span class="hs-keyword">where</span><span class="hs-cpp">
#if WORD_SIZE_IN_BITS &lt; 33
</span><span>    </span><span class="hs-identifier">showsPrec</span><span> </span><span class="hs-identifier">p</span><span> </span><span class="hs-identifier">x</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">showsPrec</span><span> </span><span class="hs-identifier">p</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">toInteger</span><span> </span><span class="hs-identifier">x</span><span class="hs-special">)</span><span class="hs-cpp">
#else
</span><span>    </span><span id="local-6989586621679496450"><span class="annot"><span class="annottext">showsPrec :: Int -&gt; Word32 -&gt; ShowS
</span><a href="#local-6989586621679496450"><span class="hs-identifier hs-var hs-var hs-var hs-var">showsPrec</span></a></span></span><span> </span><span id="local-6989586621679496449"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679496449"><span class="hs-identifier hs-var">p</span></a></span></span><span> </span><span id="local-6989586621679496448"><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496448"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; ShowS
forall a. Show a =&gt; Int -&gt; a -&gt; ShowS
</span><a href="GHC.Show.html#showsPrec"><span class="hs-identifier hs-var">showsPrec</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679496449"><span class="hs-identifier hs-var">p</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word32 -&gt; Int
forall a b. (Integral a, Num b) =&gt; a -&gt; b
</span><a href="GHC.Real.html#fromIntegral"><span class="hs-identifier hs-var">fromIntegral</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496448"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-identifier hs-type">Int</span></a></span><span class="hs-special">)</span><span class="hs-cpp">
#endif
</span><span>
</span><span id="line-674"></span><span>
</span><span id="line-675"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-676"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="GHC.Real.html#Real"><span class="hs-identifier hs-type">Real</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-identifier hs-type">Word32</span></a></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-677"></span><span>    </span><span id="local-6989586621679496439"><span class="annot"><span class="annottext">toRational :: Word32 -&gt; Rational
</span><a href="GHC.Real.html#toRational"><span class="hs-identifier hs-var hs-var hs-var hs-var">toRational</span></a></span></span><span> </span><span id="local-6989586621679496438"><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496438"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Integer
forall a. Integral a =&gt; a -&gt; Integer
</span><a href="GHC.Real.html#toInteger"><span class="hs-identifier hs-var">toInteger</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496438"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Integer -&gt; Integer -&gt; Rational
forall a. Integral a =&gt; a -&gt; a -&gt; Ratio a
</span><a href="GHC.Real.html#%25"><span class="hs-operator hs-var">%</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><span class="hs-number">1</span></span><span>
</span><span id="line-678"></span><span>
</span><span id="line-679"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-680"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="GHC.Enum.html#Bounded"><span class="hs-identifier hs-type">Bounded</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-identifier hs-type">Word32</span></a></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-681"></span><span>    </span><span id="local-6989586621679496434"><span class="annot"><span class="annottext">minBound :: Word32
</span><a href="#local-6989586621679496434"><span class="hs-identifier hs-var hs-var hs-var hs-var">minBound</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word32
</span><span class="hs-number">0</span></span><span>
</span><span id="line-682"></span><span>    </span><span id="local-6989586621679496432"><span class="annot"><span class="annottext">maxBound :: Word32
</span><a href="#local-6989586621679496432"><span class="hs-identifier hs-var hs-var hs-var hs-var">maxBound</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word32
</span><span class="hs-number">0xFFFFFFFF</span></span><span>
</span><span id="line-683"></span><span>
</span><span id="line-684"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-685"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679496421"><span id="local-6989586621679496423"><span id="local-6989586621679496427"><span class="annot"><a href="GHC.Ix.html#Ix"><span class="hs-identifier hs-type">Ix</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-identifier hs-type">Word32</span></a></span></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-686"></span><span>    </span><span id="local-6989586621679496419"><span class="annot"><span class="annottext">range :: (Word32, Word32) -&gt; [Word32]
</span><a href="#local-6989586621679496419"><span class="hs-identifier hs-var hs-var hs-var hs-var">range</span></a></span></span><span> </span><span class="hs-special">(</span><span id="local-6989586621679496418"><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496418"><span class="hs-identifier hs-var">m</span></a></span></span><span class="hs-special">,</span><span id="local-6989586621679496417"><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496417"><span class="hs-identifier hs-var">n</span></a></span></span><span class="hs-special">)</span><span>         </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">[</span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496418"><span class="hs-identifier hs-var">m</span></a></span><span class="hs-glyph">..</span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496417"><span class="hs-identifier hs-var">n</span></a></span><span class="hs-special">]</span><span>
</span><span id="line-687"></span><span>    </span><span id="local-6989586621679496413"><span class="annot"><span class="annottext">unsafeIndex :: (Word32, Word32) -&gt; Word32 -&gt; Int
</span><a href="#local-6989586621679496413"><span class="hs-identifier hs-var hs-var hs-var hs-var">unsafeIndex</span></a></span></span><span> </span><span class="hs-special">(</span><span id="local-6989586621679496412"><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496412"><span class="hs-identifier hs-var">m</span></a></span></span><span class="hs-special">,</span><span class="annot"><span class="annottext">Word32
</span><span class="hs-identifier">_</span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496411"><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496411"><span class="hs-identifier hs-var">i</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Int
forall a b. (Integral a, Num b) =&gt; a -&gt; b
</span><a href="GHC.Real.html#fromIntegral"><span class="hs-identifier hs-var">fromIntegral</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496411"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Word32
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="GHC.Num.html#-"><span class="hs-glyph hs-var">-</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496412"><span class="hs-identifier hs-var">m</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-688"></span><span>    </span><span id="local-6989586621679496408"><span class="annot"><span class="annottext">inRange :: (Word32, Word32) -&gt; Word32 -&gt; Bool
</span><a href="#local-6989586621679496408"><span class="hs-identifier hs-var hs-var hs-var hs-var">inRange</span></a></span></span><span> </span><span class="hs-special">(</span><span id="local-6989586621679496407"><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496407"><span class="hs-identifier hs-var">m</span></a></span></span><span class="hs-special">,</span><span id="local-6989586621679496406"><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496406"><span class="hs-identifier hs-var">n</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496405"><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496405"><span class="hs-identifier hs-var">i</span></a></span></span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496407"><span class="hs-identifier hs-var">m</span></a></span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%3C%3D"><span class="hs-operator hs-var">&lt;=</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496405"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="annot"><span class="annottext">Bool -&gt; Bool -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%26%26"><span class="hs-operator hs-var">&amp;&amp;</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496405"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%3C%3D"><span class="hs-operator hs-var">&lt;=</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621679496406"><span class="hs-identifier hs-var">n</span></a></span><span>
</span><span id="line-689"></span><span>
</span><span id="line-690"></span><span class="hs-comment">-- | Reverse order of bytes in 'Word32'.</span><span>
</span><span id="line-691"></span><span class="hs-comment">--</span><span>
</span><span id="line-692"></span><span class="hs-comment">-- @since 4.7.0.0</span><span>
</span><span id="line-693"></span><span class="annot"><a href="GHC.Word.html#byteSwap32"><span class="hs-identifier hs-type">byteSwap32</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-identifier hs-type">Word32</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-identifier hs-type">Word32</span></a></span><span>
</span><span id="line-694"></span><span id="byteSwap32"><span class="annot"><span class="annottext">byteSwap32 :: Word32 -&gt; Word32
</span><a href="GHC.Word.html#byteSwap32"><span class="hs-identifier hs-var hs-var">byteSwap32</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496404"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496404"><span class="hs-identifier hs-var">w#</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word32
</span><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-var">W32#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#narrow32Word%23"><span class="hs-identifier hs-var">narrow32Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#byteSwap32%23"><span class="hs-identifier hs-var">byteSwap32#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496404"><span class="hs-identifier hs-var">w#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-695"></span><span>
</span><span id="line-696"></span><span class="hs-comment">------------------------------------------------------------------------</span><span>
</span><span id="line-697"></span><span class="hs-comment">-- type Word64</span><span>
</span><span id="line-698"></span><span class="hs-comment">------------------------------------------------------------------------</span><span class="hs-cpp">

#if WORD_SIZE_IN_BITS &lt; 64
</span><span>
</span><span id="line-702"></span><span class="hs-keyword">data</span><span> </span><span class="hs-pragma">{-# CTYPE</span><span> </span><span class="hs-pragma">&quot;HsWord64&quot;</span><span> </span><span class="hs-pragma">#-}</span><span> </span><span class="hs-identifier">Word64</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">Word64#</span><span>
</span><span id="line-703"></span><span class="hs-comment">-- ^ 64-bit unsigned integer type</span><span>
</span><span id="line-704"></span><span>
</span><span id="line-705"></span><span class="hs-comment">-- See GHC.Classes#matching_overloaded_methods_in_rules</span><span>
</span><span id="line-706"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-707"></span><span class="hs-keyword">instance</span><span> </span><span class="hs-identifier">Eq</span><span> </span><span class="hs-identifier">Word64</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-708"></span><span>    </span><span class="hs-special">(</span><span class="hs-operator">==</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">eqWord64</span><span>
</span><span id="line-709"></span><span>    </span><span class="hs-special">(</span><span class="hs-operator">/=</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">neWord64</span><span>
</span><span id="line-710"></span><span>
</span><span id="line-711"></span><span class="hs-identifier">eqWord64</span><span class="hs-special">,</span><span> </span><span class="hs-identifier">neWord64</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">Word64</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">Word64</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">Bool</span><span>
</span><span id="line-712"></span><span class="hs-identifier">eqWord64</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">x</span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">y</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">isTrue#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">x</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">eqWord64#</span><span class="hs-special">`</span><span> </span><span class="hs-identifier">y</span><span class="hs-special">)</span><span>
</span><span id="line-713"></span><span class="hs-identifier">neWord64</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">x</span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">y</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">isTrue#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">x</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">neWord64#</span><span class="hs-special">`</span><span> </span><span class="hs-identifier">y</span><span class="hs-special">)</span><span>
</span><span id="line-714"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">[</span><span class="hs-pragma">1</span><span class="hs-pragma">]</span><span> </span><span class="hs-pragma">eqWord64</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-715"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">[</span><span class="hs-pragma">1</span><span class="hs-pragma">]</span><span> </span><span class="hs-pragma">neWord64</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-716"></span><span>
</span><span id="line-717"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-718"></span><span class="hs-keyword">instance</span><span> </span><span class="hs-identifier">Ord</span><span> </span><span class="hs-identifier">Word64</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-719"></span><span>    </span><span class="hs-special">(</span><span class="hs-operator">&lt;</span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">ltWord64</span><span>
</span><span id="line-720"></span><span>    </span><span class="hs-special">(</span><span class="hs-operator">&lt;=</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">leWord64</span><span>
</span><span id="line-721"></span><span>    </span><span class="hs-special">(</span><span class="hs-operator">&gt;=</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">geWord64</span><span>
</span><span id="line-722"></span><span>    </span><span class="hs-special">(</span><span class="hs-operator">&gt;</span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">gtWord64</span><span>
</span><span id="line-723"></span><span>
</span><span id="line-724"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">[</span><span class="hs-pragma">1</span><span class="hs-pragma">]</span><span> </span><span class="hs-pragma">gtWord64</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-725"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">[</span><span class="hs-pragma">1</span><span class="hs-pragma">]</span><span> </span><span class="hs-pragma">geWord64</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-726"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">[</span><span class="hs-pragma">1</span><span class="hs-pragma">]</span><span> </span><span class="hs-pragma">ltWord64</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-727"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">[</span><span class="hs-pragma">1</span><span class="hs-pragma">]</span><span> </span><span class="hs-pragma">leWord64</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-728"></span><span class="hs-identifier">gtWord64</span><span class="hs-special">,</span><span> </span><span class="hs-identifier">geWord64</span><span class="hs-special">,</span><span> </span><span class="hs-identifier">ltWord64</span><span class="hs-special">,</span><span> </span><span class="hs-identifier">leWord64</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">Word64</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">Word64</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">Bool</span><span>
</span><span id="line-729"></span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">x</span><span class="hs-special">)</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">gtWord64</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">y</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">isTrue#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">x</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">gtWord64#</span><span class="hs-special">`</span><span> </span><span class="hs-identifier">y</span><span class="hs-special">)</span><span>
</span><span id="line-730"></span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">x</span><span class="hs-special">)</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">geWord64</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">y</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">isTrue#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">x</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">geWord64#</span><span class="hs-special">`</span><span> </span><span class="hs-identifier">y</span><span class="hs-special">)</span><span>
</span><span id="line-731"></span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">x</span><span class="hs-special">)</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">ltWord64</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">y</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">isTrue#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">x</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">ltWord64#</span><span class="hs-special">`</span><span> </span><span class="hs-identifier">y</span><span class="hs-special">)</span><span>
</span><span id="line-732"></span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">x</span><span class="hs-special">)</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">leWord64</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">y</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">isTrue#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">x</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">leWord64#</span><span class="hs-special">`</span><span> </span><span class="hs-identifier">y</span><span class="hs-special">)</span><span>
</span><span id="line-733"></span><span>
</span><span id="line-734"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-735"></span><span class="hs-keyword">instance</span><span> </span><span class="hs-identifier">Num</span><span> </span><span class="hs-identifier">Word64</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-736"></span><span>    </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">x#</span><span class="hs-special">)</span><span> </span><span class="hs-operator">+</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">y#</span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">W64#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">int64ToWord64#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">word64ToInt64#</span><span> </span><span class="hs-identifier">x#</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">plusInt64#</span><span class="hs-special">`</span><span> </span><span class="hs-identifier">word64ToInt64#</span><span> </span><span class="hs-identifier">y#</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-737"></span><span>    </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">x#</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">y#</span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">W64#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">int64ToWord64#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">word64ToInt64#</span><span> </span><span class="hs-identifier">x#</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">minusInt64#</span><span class="hs-special">`</span><span> </span><span class="hs-identifier">word64ToInt64#</span><span> </span><span class="hs-identifier">y#</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-738"></span><span>    </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">x#</span><span class="hs-special">)</span><span> </span><span class="hs-operator">*</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">y#</span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">W64#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">int64ToWord64#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">word64ToInt64#</span><span> </span><span class="hs-identifier">x#</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">timesInt64#</span><span class="hs-special">`</span><span> </span><span class="hs-identifier">word64ToInt64#</span><span> </span><span class="hs-identifier">y#</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-739"></span><span>    </span><span class="hs-identifier">negate</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">x#</span><span class="hs-special">)</span><span>       </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">W64#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">int64ToWord64#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">negateInt64#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">word64ToInt64#</span><span> </span><span class="hs-identifier">x#</span><span class="hs-special">)</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-740"></span><span>    </span><span class="hs-identifier">abs</span><span> </span><span class="hs-identifier">x</span><span>                  </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">x</span><span>
</span><span id="line-741"></span><span>    </span><span class="hs-identifier">signum</span><span> </span><span class="hs-number">0</span><span>               </span><span class="hs-glyph">=</span><span> </span><span class="hs-number">0</span><span>
</span><span id="line-742"></span><span>    </span><span class="hs-identifier">signum</span><span> </span><span class="hs-identifier">_</span><span>               </span><span class="hs-glyph">=</span><span> </span><span class="hs-number">1</span><span>
</span><span id="line-743"></span><span>    </span><span class="hs-identifier">fromInteger</span><span> </span><span class="hs-identifier">i</span><span>          </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">W64#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">integerToWord64#</span><span> </span><span class="hs-identifier">i</span><span class="hs-special">)</span><span>
</span><span id="line-744"></span><span>
</span><span id="line-745"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-746"></span><span class="hs-keyword">instance</span><span> </span><span class="hs-identifier">Enum</span><span> </span><span class="hs-identifier">Word64</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-747"></span><span>    </span><span class="hs-identifier">succ</span><span> </span><span class="hs-identifier">x</span><span>
</span><span id="line-748"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">x</span><span> </span><span class="hs-operator">/=</span><span> </span><span class="hs-identifier">maxBound</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">x</span><span> </span><span class="hs-operator">+</span><span> </span><span class="hs-number">1</span><span>
</span><span id="line-749"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">otherwise</span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">succError</span><span> </span><span class="hs-string">&quot;Word64&quot;</span><span>
</span><span id="line-750"></span><span>    </span><span class="hs-identifier">pred</span><span> </span><span class="hs-identifier">x</span><span>
</span><span id="line-751"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">x</span><span> </span><span class="hs-operator">/=</span><span> </span><span class="hs-identifier">minBound</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">x</span><span> </span><span class="hs-glyph">-</span><span> </span><span class="hs-number">1</span><span>
</span><span id="line-752"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">otherwise</span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">predError</span><span> </span><span class="hs-string">&quot;Word64&quot;</span><span>
</span><span id="line-753"></span><span>    </span><span class="hs-identifier">toEnum</span><span> </span><span class="hs-identifier">i</span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="hs-identifier">I#</span><span> </span><span class="hs-identifier">i#</span><span class="hs-special">)</span><span>
</span><span id="line-754"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">i</span><span> </span><span class="hs-operator">&gt;=</span><span> </span><span class="hs-number">0</span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">W64#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">wordToWord64#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">int2Word#</span><span> </span><span class="hs-identifier">i#</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-755"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">otherwise</span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">toEnumError</span><span> </span><span class="hs-string">&quot;Word64&quot;</span><span> </span><span class="hs-identifier">i</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">minBound</span><span class="hs-glyph">::</span><span class="hs-identifier">Word64</span><span class="hs-special">,</span><span> </span><span class="hs-identifier">maxBound</span><span class="hs-glyph">::</span><span class="hs-identifier">Word64</span><span class="hs-special">)</span><span>
</span><span id="line-756"></span><span>    </span><span class="hs-identifier">fromEnum</span><span> </span><span class="hs-identifier">x</span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">x#</span><span class="hs-special">)</span><span>
</span><span id="line-757"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">x</span><span> </span><span class="hs-operator">&lt;=</span><span> </span><span class="hs-identifier">fromIntegral</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">maxBound</span><span class="hs-glyph">::</span><span class="hs-identifier">Int</span><span class="hs-special">)</span><span>
</span><span id="line-758"></span><span>                        </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">I#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">word2Int#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">word64ToWord#</span><span> </span><span class="hs-identifier">x#</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-759"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">otherwise</span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">fromEnumError</span><span> </span><span class="hs-string">&quot;Word64&quot;</span><span> </span><span class="hs-identifier">x</span><span>
</span><span id="line-760"></span><span>    </span><span class="hs-comment">-- See Note [Stable Unfolding for list producers] in GHC.Enum</span><span>
</span><span id="line-761"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">enumFrom</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-762"></span><span>    </span><span class="hs-identifier">enumFrom</span><span>            </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">integralEnumFrom</span><span>
</span><span id="line-763"></span><span>    </span><span class="hs-comment">-- See Note [Stable Unfolding for list producers] in GHC.Enum</span><span>
</span><span id="line-764"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">enumFromThen</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-765"></span><span>    </span><span class="hs-identifier">enumFromThen</span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">integralEnumFromThen</span><span>
</span><span id="line-766"></span><span>    </span><span class="hs-comment">-- See Note [Stable Unfolding for list producers] in GHC.Enum</span><span>
</span><span id="line-767"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">enumFromTo</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-768"></span><span>    </span><span class="hs-identifier">enumFromTo</span><span>          </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">integralEnumFromTo</span><span>
</span><span id="line-769"></span><span>    </span><span class="hs-comment">-- See Note [Stable Unfolding for list producers] in GHC.Enum</span><span>
</span><span id="line-770"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">enumFromThenTo</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-771"></span><span>    </span><span class="hs-identifier">enumFromThenTo</span><span>      </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">integralEnumFromThenTo</span><span>
</span><span id="line-772"></span><span>
</span><span id="line-773"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-774"></span><span class="hs-keyword">instance</span><span> </span><span class="hs-identifier">Integral</span><span> </span><span class="hs-identifier">Word64</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-775"></span><span>    </span><span class="hs-identifier">quot</span><span>    </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">x#</span><span class="hs-special">)</span><span> </span><span class="hs-identifier">y</span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">y#</span><span class="hs-special">)</span><span>
</span><span id="line-776"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">y</span><span> </span><span class="hs-operator">/=</span><span> </span><span class="hs-number">0</span><span>                    </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">W64#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">x#</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">quotWord64#</span><span class="hs-special">`</span><span> </span><span class="hs-identifier">y#</span><span class="hs-special">)</span><span>
</span><span id="line-777"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">otherwise</span><span>                 </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">divZeroError</span><span>
</span><span id="line-778"></span><span>    </span><span class="hs-identifier">rem</span><span>     </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">x#</span><span class="hs-special">)</span><span> </span><span class="hs-identifier">y</span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">y#</span><span class="hs-special">)</span><span>
</span><span id="line-779"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">y</span><span> </span><span class="hs-operator">/=</span><span> </span><span class="hs-number">0</span><span>                    </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">W64#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">x#</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">remWord64#</span><span class="hs-special">`</span><span> </span><span class="hs-identifier">y#</span><span class="hs-special">)</span><span>
</span><span id="line-780"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">otherwise</span><span>                 </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">divZeroError</span><span>
</span><span id="line-781"></span><span>    </span><span class="hs-identifier">div</span><span>     </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">x#</span><span class="hs-special">)</span><span> </span><span class="hs-identifier">y</span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">y#</span><span class="hs-special">)</span><span>
</span><span id="line-782"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">y</span><span> </span><span class="hs-operator">/=</span><span> </span><span class="hs-number">0</span><span>                    </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">W64#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">x#</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">quotWord64#</span><span class="hs-special">`</span><span> </span><span class="hs-identifier">y#</span><span class="hs-special">)</span><span>
</span><span id="line-783"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">otherwise</span><span>                 </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">divZeroError</span><span>
</span><span id="line-784"></span><span>    </span><span class="hs-identifier">mod</span><span>     </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">x#</span><span class="hs-special">)</span><span> </span><span class="hs-identifier">y</span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">y#</span><span class="hs-special">)</span><span>
</span><span id="line-785"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">y</span><span> </span><span class="hs-operator">/=</span><span> </span><span class="hs-number">0</span><span>                    </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">W64#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">x#</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">remWord64#</span><span class="hs-special">`</span><span> </span><span class="hs-identifier">y#</span><span class="hs-special">)</span><span>
</span><span id="line-786"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">otherwise</span><span>                 </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">divZeroError</span><span>
</span><span id="line-787"></span><span>    </span><span class="hs-identifier">quotRem</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">x#</span><span class="hs-special">)</span><span> </span><span class="hs-identifier">y</span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">y#</span><span class="hs-special">)</span><span>
</span><span id="line-788"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">y</span><span> </span><span class="hs-operator">/=</span><span> </span><span class="hs-number">0</span><span>                    </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">x#</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">quotWord64#</span><span class="hs-special">`</span><span> </span><span class="hs-identifier">y#</span><span class="hs-special">)</span><span class="hs-special">,</span><span> </span><span class="hs-identifier">W64#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">x#</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">remWord64#</span><span class="hs-special">`</span><span> </span><span class="hs-identifier">y#</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-789"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">otherwise</span><span>                 </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">divZeroError</span><span>
</span><span id="line-790"></span><span>    </span><span class="hs-identifier">divMod</span><span>  </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">x#</span><span class="hs-special">)</span><span> </span><span class="hs-identifier">y</span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">y#</span><span class="hs-special">)</span><span>
</span><span id="line-791"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">y</span><span> </span><span class="hs-operator">/=</span><span> </span><span class="hs-number">0</span><span>                    </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">x#</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">quotWord64#</span><span class="hs-special">`</span><span> </span><span class="hs-identifier">y#</span><span class="hs-special">)</span><span class="hs-special">,</span><span> </span><span class="hs-identifier">W64#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">x#</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">remWord64#</span><span class="hs-special">`</span><span> </span><span class="hs-identifier">y#</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-792"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">otherwise</span><span>                 </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">divZeroError</span><span>
</span><span id="line-793"></span><span>    </span><span class="hs-identifier">toInteger</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">x#</span><span class="hs-special">)</span><span>             </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">integerFromWord64#</span><span> </span><span class="hs-identifier">x#</span><span>
</span><span id="line-794"></span><span>
</span><span id="line-795"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-796"></span><span class="hs-keyword">instance</span><span> </span><span class="hs-identifier">Bits</span><span> </span><span class="hs-identifier">Word64</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-797"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">shift</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-798"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">bit</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-799"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">testBit</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-800"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">popCount</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-801"></span><span>
</span><span id="line-802"></span><span>    </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">x#</span><span class="hs-special">)</span><span> </span><span class="hs-operator">.&amp;.</span><span>   </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">y#</span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">W64#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">x#</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">and64#</span><span class="hs-special">`</span><span> </span><span class="hs-identifier">y#</span><span class="hs-special">)</span><span>
</span><span id="line-803"></span><span>    </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">x#</span><span class="hs-special">)</span><span> </span><span class="hs-operator">.|.</span><span>   </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">y#</span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">W64#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">x#</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">or64#</span><span class="hs-special">`</span><span>  </span><span class="hs-identifier">y#</span><span class="hs-special">)</span><span>
</span><span id="line-804"></span><span>    </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">x#</span><span class="hs-special">)</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">xor</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">y#</span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">W64#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">x#</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">xor64#</span><span class="hs-special">`</span><span> </span><span class="hs-identifier">y#</span><span class="hs-special">)</span><span>
</span><span id="line-805"></span><span>    </span><span class="hs-identifier">complement</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">x#</span><span class="hs-special">)</span><span>       </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">W64#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">not64#</span><span> </span><span class="hs-identifier">x#</span><span class="hs-special">)</span><span>
</span><span id="line-806"></span><span>    </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">x#</span><span class="hs-special">)</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">shift</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">I#</span><span> </span><span class="hs-identifier">i#</span><span class="hs-special">)</span><span>
</span><span id="line-807"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">isTrue#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">i#</span><span> </span><span class="hs-operator">&gt;=#</span><span> </span><span class="hs-number">0#</span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">W64#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">x#</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">shiftL64#</span><span class="hs-special">`</span><span> </span><span class="hs-identifier">i#</span><span class="hs-special">)</span><span>
</span><span id="line-808"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">otherwise</span><span>            </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">W64#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">x#</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">shiftRL64#</span><span class="hs-special">`</span><span> </span><span class="hs-identifier">negateInt#</span><span> </span><span class="hs-identifier">i#</span><span class="hs-special">)</span><span>
</span><span id="line-809"></span><span>    </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">x#</span><span class="hs-special">)</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">shiftL</span><span class="hs-special">`</span><span>       </span><span class="hs-special">(</span><span class="hs-identifier">I#</span><span> </span><span class="hs-identifier">i#</span><span class="hs-special">)</span><span>
</span><span id="line-810"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">isTrue#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">i#</span><span> </span><span class="hs-operator">&gt;=#</span><span> </span><span class="hs-number">0#</span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">W64#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">x#</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">shiftL64#</span><span class="hs-special">`</span><span> </span><span class="hs-identifier">i#</span><span class="hs-special">)</span><span>
</span><span id="line-811"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">otherwise</span><span>            </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">overflowError</span><span>
</span><span id="line-812"></span><span>    </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">x#</span><span class="hs-special">)</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">unsafeShiftL</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">I#</span><span> </span><span class="hs-identifier">i#</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">W64#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">x#</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">uncheckedShiftL64#</span><span class="hs-special">`</span><span> </span><span class="hs-identifier">i#</span><span class="hs-special">)</span><span>
</span><span id="line-813"></span><span>    </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">x#</span><span class="hs-special">)</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">shiftR</span><span class="hs-special">`</span><span>       </span><span class="hs-special">(</span><span class="hs-identifier">I#</span><span> </span><span class="hs-identifier">i#</span><span class="hs-special">)</span><span>
</span><span id="line-814"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">isTrue#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">i#</span><span> </span><span class="hs-operator">&gt;=#</span><span> </span><span class="hs-number">0#</span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">W64#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">x#</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">shiftRL64#</span><span class="hs-special">`</span><span> </span><span class="hs-identifier">i#</span><span class="hs-special">)</span><span>
</span><span id="line-815"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">otherwise</span><span>            </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">overflowError</span><span>
</span><span id="line-816"></span><span>    </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">x#</span><span class="hs-special">)</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">unsafeShiftR</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">I#</span><span> </span><span class="hs-identifier">i#</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">W64#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">x#</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">uncheckedShiftRL64#</span><span class="hs-special">`</span><span> </span><span class="hs-identifier">i#</span><span class="hs-special">)</span><span>
</span><span id="line-817"></span><span>    </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">x#</span><span class="hs-special">)</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">rotate</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">I#</span><span> </span><span class="hs-identifier">i#</span><span class="hs-special">)</span><span>
</span><span id="line-818"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">isTrue#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">i'#</span><span> </span><span class="hs-operator">==#</span><span> </span><span class="hs-number">0#</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">x#</span><span>
</span><span id="line-819"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">otherwise</span><span>            </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">W64#</span><span> </span><span class="hs-special">(</span><span class="hs-special">(</span><span class="hs-identifier">x#</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">uncheckedShiftL64#</span><span class="hs-special">`</span><span> </span><span class="hs-identifier">i'#</span><span class="hs-special">)</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">or64#</span><span class="hs-special">`</span><span>
</span><span id="line-820"></span><span>                                       </span><span class="hs-special">(</span><span class="hs-identifier">x#</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">uncheckedShiftRL64#</span><span class="hs-special">`</span><span> </span><span class="hs-special">(</span><span class="hs-number">64#</span><span> </span><span class="hs-operator">-#</span><span> </span><span class="hs-identifier">i'#</span><span class="hs-special">)</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-821"></span><span>        </span><span class="hs-keyword">where</span><span>
</span><span id="line-822"></span><span>        </span><span class="hs-glyph">!</span><span class="hs-identifier">i'#</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">word2Int#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">int2Word#</span><span> </span><span class="hs-identifier">i#</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">and#</span><span class="hs-special">`</span><span> </span><span class="hs-number">63##</span><span class="hs-special">)</span><span>
</span><span id="line-823"></span><span>    </span><span class="hs-identifier">bitSizeMaybe</span><span> </span><span class="hs-identifier">i</span><span>            </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">Just</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">finiteBitSize</span><span> </span><span class="hs-identifier">i</span><span class="hs-special">)</span><span>
</span><span id="line-824"></span><span>    </span><span class="hs-identifier">bitSize</span><span> </span><span class="hs-identifier">i</span><span>                 </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">finiteBitSize</span><span> </span><span class="hs-identifier">i</span><span>
</span><span id="line-825"></span><span>    </span><span class="hs-identifier">isSigned</span><span> </span><span class="hs-identifier">_</span><span>                </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">False</span><span>
</span><span id="line-826"></span><span>    </span><span class="hs-identifier">popCount</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">x#</span><span class="hs-special">)</span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">I#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">word2Int#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">popCnt64#</span><span> </span><span class="hs-identifier">x#</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-827"></span><span>    </span><span class="hs-identifier">bit</span><span>                       </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">bitDefault</span><span>
</span><span id="line-828"></span><span>    </span><span class="hs-identifier">testBit</span><span>                   </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">testBitDefault</span><span>
</span><span id="line-829"></span><span>
</span><span id="line-830"></span><span class="hs-comment">-- give the 64-bit shift operations the same treatment as the 32-bit</span><span>
</span><span id="line-831"></span><span class="hs-comment">-- ones (see GHC.Base), namely we wrap them in tests to catch the</span><span>
</span><span id="line-832"></span><span class="hs-comment">-- cases when we're shifting more than 64 bits to avoid unspecified</span><span>
</span><span id="line-833"></span><span class="hs-comment">-- behaviour in the C shift operations.</span><span>
</span><span id="line-834"></span><span>
</span><span id="line-835"></span><span class="hs-identifier">shiftL64#</span><span class="hs-special">,</span><span> </span><span class="hs-identifier">shiftRL64#</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">Word64#</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">Int#</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">Word64#</span><span>
</span><span id="line-836"></span><span>
</span><span id="line-837"></span><span class="hs-identifier">a</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">shiftL64#</span><span class="hs-special">`</span><span> </span><span class="hs-identifier">b</span><span>  </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">isTrue#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">b</span><span> </span><span class="hs-operator">&gt;=#</span><span> </span><span class="hs-number">64#</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">wordToWord64#</span><span> </span><span class="hs-number">0##</span><span>
</span><span id="line-838"></span><span>                 </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">otherwise</span><span>           </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">a</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">uncheckedShiftL64#</span><span class="hs-special">`</span><span> </span><span class="hs-identifier">b</span><span>
</span><span id="line-839"></span><span>
</span><span id="line-840"></span><span class="hs-identifier">a</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">shiftRL64#</span><span class="hs-special">`</span><span> </span><span class="hs-identifier">b</span><span> </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">isTrue#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">b</span><span> </span><span class="hs-operator">&gt;=#</span><span> </span><span class="hs-number">64#</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">wordToWord64#</span><span> </span><span class="hs-number">0##</span><span>
</span><span id="line-841"></span><span>                 </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">otherwise</span><span>           </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">a</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">uncheckedShiftRL64#</span><span class="hs-special">`</span><span> </span><span class="hs-identifier">b</span><span>
</span><span id="line-842"></span><span>
</span><span id="line-843"></span><span class="hs-pragma">{-# RULES</span><span>
</span><span id="line-844"></span><span class="hs-pragma">&quot;fromIntegral/Int-&gt;Word64&quot;</span><span>    </span><span class="hs-pragma">fromIntegral</span><span> </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">\</span><span class="hs-pragma">(</span><span class="hs-pragma">I#</span><span>   </span><span class="hs-pragma">x#</span><span class="hs-pragma">)</span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="hs-pragma">W64#</span><span> </span><span class="hs-pragma">(</span><span class="hs-pragma">int64ToWord64#</span><span> </span><span class="hs-pragma">(</span><span class="hs-pragma">intToInt64#</span><span> </span><span class="hs-pragma">x#</span><span class="hs-pragma">)</span><span class="hs-pragma">)</span><span>
</span><span id="line-845"></span><span class="hs-pragma">&quot;fromIntegral/Word-&gt;Word64&quot;</span><span>   </span><span class="hs-pragma">fromIntegral</span><span> </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">\</span><span class="hs-pragma">(</span><span class="hs-pragma">W#</span><span>   </span><span class="hs-pragma">x#</span><span class="hs-pragma">)</span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="hs-pragma">W64#</span><span> </span><span class="hs-pragma">(</span><span class="hs-pragma">wordToWord64#</span><span> </span><span class="hs-pragma">x#</span><span class="hs-pragma">)</span><span>
</span><span id="line-846"></span><span class="hs-pragma">&quot;fromIntegral/Word64-&gt;Int&quot;</span><span>    </span><span class="hs-pragma">fromIntegral</span><span> </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">\</span><span class="hs-pragma">(</span><span class="hs-pragma">W64#</span><span> </span><span class="hs-pragma">x#</span><span class="hs-pragma">)</span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="hs-pragma">I#</span><span>   </span><span class="hs-pragma">(</span><span class="hs-pragma">word2Int#</span><span> </span><span class="hs-pragma">(</span><span class="hs-pragma">word64ToWord#</span><span> </span><span class="hs-pragma">x#</span><span class="hs-pragma">)</span><span class="hs-pragma">)</span><span>
</span><span id="line-847"></span><span class="hs-pragma">&quot;fromIntegral/Word64-&gt;Word&quot;</span><span>   </span><span class="hs-pragma">fromIntegral</span><span> </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">\</span><span class="hs-pragma">(</span><span class="hs-pragma">W64#</span><span> </span><span class="hs-pragma">x#</span><span class="hs-pragma">)</span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="hs-pragma">W#</span><span>   </span><span class="hs-pragma">(</span><span class="hs-pragma">word64ToWord#</span><span> </span><span class="hs-pragma">x#</span><span class="hs-pragma">)</span><span>
</span><span id="line-848"></span><span class="hs-pragma">&quot;fromIntegral/Word64-&gt;Word64&quot;</span><span> </span><span class="hs-pragma">fromIntegral</span><span> </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">id</span><span> </span><span class="hs-pragma">::</span><span> </span><span class="hs-pragma">Word64</span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="hs-pragma">Word64</span><span>
</span><span id="line-849"></span><span>  </span><span class="hs-pragma">#-}</span><span class="hs-cpp">

#else
</span><span>
</span><span id="line-853"></span><span class="hs-comment">-- Word64 is represented in the same way as Word.</span><span>
</span><span id="line-854"></span><span class="hs-comment">-- Operations may assume and must ensure that it holds only values</span><span>
</span><span id="line-855"></span><span class="hs-comment">-- from its logical range.</span><span>
</span><span id="line-856"></span><span>
</span><span id="line-857"></span><span class="hs-keyword">data</span><span> </span><span class="hs-pragma">{-# CTYPE</span><span> </span><span class="hs-pragma">&quot;HsWord64&quot;</span><span> </span><span class="hs-pragma">#-}</span><span> </span><span id="Word64"><span class="annot"><a href="GHC.Word.html#Word64"><span class="hs-identifier hs-var">Word64</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="W64%23"><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-var">W64#</span></a></span></span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Word%23"><span class="hs-identifier hs-type">Word#</span></a></span><span>
</span><span id="line-858"></span><span class="hs-comment">-- ^ 64-bit unsigned integer type</span><span>
</span><span id="line-859"></span><span>
</span><span id="line-860"></span><span class="hs-comment">-- See GHC.Classes#matching_overloaded_methods_in_rules</span><span>
</span><span id="line-861"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-862"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Classes.html#Eq"><span class="hs-identifier hs-type">Eq</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word64"><span class="hs-identifier hs-type">Word64</span></a></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-863"></span><span>    </span><span id="local-6989586621679496399"><span class="annot"><span class="annottext">== :: Word64 -&gt; Word64 -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%3D%3D"><span class="hs-operator hs-var hs-var hs-var hs-var">(==)</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word64 -&gt; Word64 -&gt; Bool
</span><a href="GHC.Word.html#eqWord64"><span class="hs-identifier hs-var">eqWord64</span></a></span><span>
</span><span id="line-864"></span><span>    </span><span id="local-6989586621679496398"><span class="annot"><span class="annottext">/= :: Word64 -&gt; Word64 -&gt; Bool
</span><a href="#local-6989586621679496398"><span class="hs-operator hs-var hs-var hs-var hs-var">(/=)</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word64 -&gt; Word64 -&gt; Bool
</span><a href="GHC.Word.html#neWord64"><span class="hs-identifier hs-var">neWord64</span></a></span><span>
</span><span id="line-865"></span><span>
</span><span id="line-866"></span><span class="annot"><a href="GHC.Word.html#eqWord64"><span class="hs-identifier hs-type">eqWord64</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#neWord64"><span class="hs-identifier hs-type">neWord64</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Word.html#Word64"><span class="hs-identifier hs-type">Word64</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word64"><span class="hs-identifier hs-type">Word64</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Bool"><span class="hs-identifier hs-type">Bool</span></a></span><span>
</span><span id="line-867"></span><span id="eqWord64"><span class="annot"><span class="annottext">eqWord64 :: Word64 -&gt; Word64 -&gt; Bool
</span><a href="GHC.Word.html#eqWord64"><span class="hs-identifier hs-var hs-var">eqWord64</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496397"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496397"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496396"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496396"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496397"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#eqWord%23"><span class="hs-operator hs-var">`eqWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496396"><span class="hs-identifier hs-var">y</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-868"></span><span id="neWord64"><span class="annot"><span class="annottext">neWord64 :: Word64 -&gt; Word64 -&gt; Bool
</span><a href="GHC.Word.html#neWord64"><span class="hs-identifier hs-var hs-var">neWord64</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496395"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496395"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496394"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496394"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496395"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#neWord%23"><span class="hs-operator hs-var">`neWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496394"><span class="hs-identifier hs-var">y</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-869"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">[</span><span class="hs-pragma">1</span><span class="hs-pragma">]</span><span> </span><span class="annot"><a href="GHC.Word.html#eqWord64"><span class="hs-pragma hs-type">eqWord64</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-870"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">[</span><span class="hs-pragma">1</span><span class="hs-pragma">]</span><span> </span><span class="annot"><a href="GHC.Word.html#neWord64"><span class="hs-pragma hs-type">neWord64</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-871"></span><span>
</span><span id="line-872"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-873"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679496382"><span id="local-6989586621679496384"><span id="local-6989586621679496390"><span class="annot"><a href="../../ghc-prim/src/GHC.Classes.html#Ord"><span class="hs-identifier hs-type">Ord</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word64"><span class="hs-identifier hs-type">Word64</span></a></span></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-874"></span><span>    </span><span id="local-6989586621679496381"><span class="annot"><span class="annottext">&lt; :: Word64 -&gt; Word64 -&gt; Bool
</span><a href="#local-6989586621679496381"><span class="hs-operator hs-var hs-var hs-var hs-var">(&lt;)</span></a></span></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word64 -&gt; Word64 -&gt; Bool
</span><a href="GHC.Word.html#ltWord64"><span class="hs-identifier hs-var">ltWord64</span></a></span><span>
</span><span id="line-875"></span><span>    </span><span id="local-6989586621679496380"><span class="annot"><span class="annottext">&lt;= :: Word64 -&gt; Word64 -&gt; Bool
</span><a href="#local-6989586621679496380"><span class="hs-operator hs-var hs-var hs-var hs-var">(&lt;=)</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word64 -&gt; Word64 -&gt; Bool
</span><a href="GHC.Word.html#leWord64"><span class="hs-identifier hs-var">leWord64</span></a></span><span>
</span><span id="line-876"></span><span>    </span><span id="local-6989586621679496379"><span class="annot"><span class="annottext">&gt;= :: Word64 -&gt; Word64 -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%3E%3D"><span class="hs-operator hs-var hs-var hs-var hs-var">(&gt;=)</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word64 -&gt; Word64 -&gt; Bool
</span><a href="GHC.Word.html#geWord64"><span class="hs-identifier hs-var">geWord64</span></a></span><span>
</span><span id="line-877"></span><span>    </span><span id="local-6989586621679496378"><span class="annot"><span class="annottext">&gt; :: Word64 -&gt; Word64 -&gt; Bool
</span><a href="#local-6989586621679496378"><span class="hs-operator hs-var hs-var hs-var hs-var">(&gt;)</span></a></span></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word64 -&gt; Word64 -&gt; Bool
</span><a href="GHC.Word.html#gtWord64"><span class="hs-identifier hs-var">gtWord64</span></a></span><span>
</span><span id="line-878"></span><span>
</span><span id="line-879"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">[</span><span class="hs-pragma">1</span><span class="hs-pragma">]</span><span> </span><span class="annot"><a href="GHC.Word.html#gtWord64"><span class="hs-pragma hs-type">gtWord64</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-880"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">[</span><span class="hs-pragma">1</span><span class="hs-pragma">]</span><span> </span><span class="annot"><a href="GHC.Word.html#geWord64"><span class="hs-pragma hs-type">geWord64</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-881"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">[</span><span class="hs-pragma">1</span><span class="hs-pragma">]</span><span> </span><span class="annot"><a href="GHC.Word.html#ltWord64"><span class="hs-pragma hs-type">ltWord64</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-882"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">[</span><span class="hs-pragma">1</span><span class="hs-pragma">]</span><span> </span><span class="annot"><a href="GHC.Word.html#leWord64"><span class="hs-pragma hs-type">leWord64</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-883"></span><span class="annot"><a href="GHC.Word.html#gtWord64"><span class="hs-identifier hs-type">gtWord64</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#geWord64"><span class="hs-identifier hs-type">geWord64</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#ltWord64"><span class="hs-identifier hs-type">ltWord64</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Word.html#leWord64"><span class="hs-identifier hs-type">leWord64</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Word.html#Word64"><span class="hs-identifier hs-type">Word64</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word64"><span class="hs-identifier hs-type">Word64</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Bool"><span class="hs-identifier hs-type">Bool</span></a></span><span>
</span><span id="line-884"></span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496377"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496377"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span id="gtWord64"><span class="annot"><span class="annottext">gtWord64 :: Word64 -&gt; Word64 -&gt; Bool
</span><a href="GHC.Word.html#gtWord64"><span class="hs-operator hs-var hs-var">`gtWord64`</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496376"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496376"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496377"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#gtWord%23"><span class="hs-operator hs-var">`gtWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496376"><span class="hs-identifier hs-var">y</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-885"></span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496375"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496375"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span id="geWord64"><span class="annot"><span class="annottext">geWord64 :: Word64 -&gt; Word64 -&gt; Bool
</span><a href="GHC.Word.html#geWord64"><span class="hs-operator hs-var hs-var">`geWord64`</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496374"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496374"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496375"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#geWord%23"><span class="hs-operator hs-var">`geWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496374"><span class="hs-identifier hs-var">y</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-886"></span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496373"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496373"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span id="ltWord64"><span class="annot"><span class="annottext">ltWord64 :: Word64 -&gt; Word64 -&gt; Bool
</span><a href="GHC.Word.html#ltWord64"><span class="hs-operator hs-var hs-var">`ltWord64`</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496372"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496372"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496373"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#ltWord%23"><span class="hs-operator hs-var">`ltWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496372"><span class="hs-identifier hs-var">y</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-887"></span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496371"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496371"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span id="leWord64"><span class="annot"><span class="annottext">leWord64 :: Word64 -&gt; Word64 -&gt; Bool
</span><a href="GHC.Word.html#leWord64"><span class="hs-operator hs-var hs-var">`leWord64`</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496370"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496370"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496371"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#leWord%23"><span class="hs-operator hs-var">`leWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496370"><span class="hs-identifier hs-var">y</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-888"></span><span>
</span><span id="line-889"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-890"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="GHC.Num.html#Num"><span class="hs-identifier hs-type">Num</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word64"><span class="hs-identifier hs-type">Word64</span></a></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-891"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496361"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496361"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496360"><span class="annot"><span class="annottext">+ :: Word64 -&gt; Word64 -&gt; Word64
</span><a href="#local-6989586621679496360"><span class="hs-operator hs-var hs-var hs-var hs-var">+</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496359"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496359"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word64
</span><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-var">W64#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496361"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#plusWord%23"><span class="hs-operator hs-var">`plusWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496359"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-892"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496358"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496358"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496357"><span class="annot"><span class="annottext">- :: Word64 -&gt; Word64 -&gt; Word64
</span><a href="GHC.Num.html#-"><span class="hs-glyph hs-var hs-var hs-var hs-var">-</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496356"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496356"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word64
</span><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-var">W64#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496358"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#minusWord%23"><span class="hs-operator hs-var">`minusWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496356"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-893"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496355"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496355"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496354"><span class="annot"><span class="annottext">* :: Word64 -&gt; Word64 -&gt; Word64
</span><a href="#local-6989586621679496354"><span class="hs-operator hs-var hs-var hs-var hs-var">*</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496353"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496353"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word64
</span><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-var">W64#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496355"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#timesWord%23"><span class="hs-operator hs-var">`timesWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496353"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-894"></span><span>    </span><span id="local-6989586621679496352"><span class="annot"><span class="annottext">negate :: Word64 -&gt; Word64
</span><a href="GHC.Num.html#negate"><span class="hs-identifier hs-var hs-var hs-var hs-var">negate</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496351"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496351"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span>       </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word64
</span><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-var">W64#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#int2Word%23"><span class="hs-identifier hs-var">int2Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#negateInt%23"><span class="hs-identifier hs-var">negateInt#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#word2Int%23"><span class="hs-identifier hs-var">word2Int#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496351"><span class="hs-identifier hs-var">x#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-895"></span><span>    </span><span id="local-6989586621679496350"><span class="annot"><span class="annottext">abs :: Word64 -&gt; Word64
</span><a href="#local-6989586621679496350"><span class="hs-identifier hs-var hs-var hs-var hs-var">abs</span></a></span></span><span> </span><span id="local-6989586621679496349"><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496349"><span class="hs-identifier hs-var">x</span></a></span></span><span>                  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496349"><span class="hs-identifier hs-var">x</span></a></span><span>
</span><span id="line-896"></span><span>    </span><span id="local-6989586621679496344"><span class="annot"><span class="annottext">signum :: Word64 -&gt; Word64
</span><a href="#local-6989586621679496344"><span class="hs-identifier hs-var hs-var hs-var hs-var">signum</span></a></span></span><span> </span><span class="annot"><span class="annottext">Word64
</span><span class="hs-number">0</span></span><span>               </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word64
</span><span class="hs-number">0</span></span><span>
</span><span id="line-897"></span><span>    </span><span class="annot"><a href="GHC.Num.html#signum"><span class="hs-identifier hs-var">signum</span></a></span><span> </span><span class="annot"><span class="annottext">Word64
</span><span class="hs-identifier">_</span></span><span>               </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word64
</span><span class="hs-number">1</span></span><span>
</span><span id="line-898"></span><span>    </span><span id="local-6989586621679496343"><span class="annot"><span class="annottext">fromInteger :: Integer -&gt; Word64
</span><a href="GHC.Num.html#fromInteger"><span class="hs-identifier hs-var hs-var hs-var hs-var">fromInteger</span></a></span></span><span> </span><span id="local-6989586621679496342"><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679496342"><span class="hs-identifier hs-var">i</span></a></span></span><span>          </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word64
</span><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-var">W64#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Integer -&gt; Word#
</span><a href="../../ghc-bignum/src/GHC.Num.Integer.html#integerToWord%23"><span class="hs-identifier hs-var">integerToWord#</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679496342"><span class="hs-identifier hs-var">i</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-899"></span><span>
</span><span id="line-900"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-901"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="GHC.Enum.html#Enum"><span class="hs-identifier hs-type">Enum</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word64"><span class="hs-identifier hs-type">Word64</span></a></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-902"></span><span>    </span><span id="local-6989586621679496327"><span class="annot"><span class="annottext">succ :: Word64 -&gt; Word64
</span><a href="#local-6989586621679496327"><span class="hs-identifier hs-var hs-var hs-var hs-var">succ</span></a></span></span><span> </span><span id="local-6989586621679496326"><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496326"><span class="hs-identifier hs-var">x</span></a></span></span><span>
</span><span id="line-903"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496326"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word64 -&gt; Word64 -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%2F%3D"><span class="hs-operator hs-var">/=</span></a></span><span> </span><span class="annot"><span class="annottext">Word64
forall a. Bounded a =&gt; a
</span><a href="GHC.Enum.html#maxBound"><span class="hs-identifier hs-var">maxBound</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496326"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word64 -&gt; Word64 -&gt; Word64
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="GHC.Num.html#%2B"><span class="hs-operator hs-var">+</span></a></span><span> </span><span class="annot"><span class="annottext">Word64
</span><span class="hs-number">1</span></span><span>
</span><span id="line-904"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; Word64
forall a. String -&gt; a
</span><a href="GHC.Enum.html#succError"><span class="hs-identifier hs-var">succError</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;Word64&quot;</span></span><span>
</span><span id="line-905"></span><span>    </span><span id="local-6989586621679496321"><span class="annot"><span class="annottext">pred :: Word64 -&gt; Word64
</span><a href="#local-6989586621679496321"><span class="hs-identifier hs-var hs-var hs-var hs-var">pred</span></a></span></span><span> </span><span id="local-6989586621679496320"><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496320"><span class="hs-identifier hs-var">x</span></a></span></span><span>
</span><span id="line-906"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496320"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word64 -&gt; Word64 -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%2F%3D"><span class="hs-operator hs-var">/=</span></a></span><span> </span><span class="annot"><span class="annottext">Word64
forall a. Bounded a =&gt; a
</span><a href="GHC.Enum.html#minBound"><span class="hs-identifier hs-var">minBound</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496320"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word64 -&gt; Word64 -&gt; Word64
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="GHC.Num.html#-"><span class="hs-glyph hs-var">-</span></a></span><span> </span><span class="annot"><span class="annottext">Word64
</span><span class="hs-number">1</span></span><span>
</span><span id="line-907"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; Word64
forall a. String -&gt; a
</span><a href="GHC.Enum.html#predError"><span class="hs-identifier hs-var">predError</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;Word64&quot;</span></span><span>
</span><span id="line-908"></span><span>    </span><span id="local-6989586621679496314"><span class="annot"><span class="annottext">toEnum :: Int -&gt; Word64
</span><a href="#local-6989586621679496314"><span class="hs-identifier hs-var hs-var hs-var hs-var">toEnum</span></a></span></span><span> </span><span id="local-6989586621679496313"><span class="annot"><span class="annottext">i :: Int
</span><a href="#local-6989586621679496313"><span class="hs-identifier hs-var">i</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-type">I#</span></a></span><span> </span><span id="local-6989586621679496312"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496312"><span class="hs-identifier hs-var">i#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-909"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679496313"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%3E%3D"><span class="hs-operator hs-var">&gt;=</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">0</span></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word64
</span><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-var">W64#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#int2Word%23"><span class="hs-identifier hs-var">int2Word#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496312"><span class="hs-identifier hs-var">i#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-910"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; Int -&gt; (Word64, Word64) -&gt; Word64
forall a b. Show a =&gt; String -&gt; Int -&gt; (a, a) -&gt; b
</span><a href="GHC.Enum.html#toEnumError"><span class="hs-identifier hs-var">toEnumError</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;Word64&quot;</span></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679496313"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word64
forall a. Bounded a =&gt; a
</span><a href="GHC.Enum.html#minBound"><span class="hs-identifier hs-var">minBound</span></a></span><span class="hs-glyph">::</span><span class="annot"><a href="GHC.Word.html#Word64"><span class="hs-identifier hs-type">Word64</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">Word64
forall a. Bounded a =&gt; a
</span><a href="GHC.Enum.html#maxBound"><span class="hs-identifier hs-var">maxBound</span></a></span><span class="hs-glyph">::</span><span class="annot"><a href="GHC.Word.html#Word64"><span class="hs-identifier hs-type">Word64</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-911"></span><span>    </span><span id="local-6989586621679496304"><span class="annot"><span class="annottext">fromEnum :: Word64 -&gt; Int
</span><a href="#local-6989586621679496304"><span class="hs-identifier hs-var hs-var hs-var hs-var">fromEnum</span></a></span></span><span> </span><span id="local-6989586621679496303"><span class="annot"><span class="annottext">x :: Word64
</span><a href="#local-6989586621679496303"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496302"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496302"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-912"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496303"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Word64 -&gt; Word64 -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%3C%3D"><span class="hs-operator hs-var">&lt;=</span></a></span><span> </span><span class="annot"><span class="annottext">Int -&gt; Word64
forall a b. (Integral a, Num b) =&gt; a -&gt; b
</span><a href="GHC.Real.html#fromIntegral"><span class="hs-identifier hs-var">fromIntegral</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int
forall a. Bounded a =&gt; a
</span><a href="GHC.Enum.html#maxBound"><span class="hs-identifier hs-var">maxBound</span></a></span><span class="hs-glyph">::</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-identifier hs-type">Int</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-913"></span><span>                        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int
</span><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-var">I#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#word2Int%23"><span class="hs-identifier hs-var">word2Int#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496302"><span class="hs-identifier hs-var">x#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-914"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; Word64 -&gt; Int
forall a b. Show a =&gt; String -&gt; a -&gt; b
</span><a href="GHC.Enum.html#fromEnumError"><span class="hs-identifier hs-var">fromEnumError</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;Word64&quot;</span></span><span> </span><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496303"><span class="hs-identifier hs-var">x</span></a></span><span class="hs-cpp">

#if WORD_SIZE_IN_BITS &lt; 64
</span><span>    </span><span class="hs-comment">-- See Note [Stable Unfolding for list producers] in GHC.Enum</span><span>
</span><span id="line-918"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">enumFrom</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-919"></span><span>    </span><span class="hs-identifier">enumFrom</span><span>            </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">integralEnumFrom</span><span>
</span><span id="line-920"></span><span>    </span><span class="hs-comment">-- See Note [Stable Unfolding for list producers] in GHC.Enum</span><span>
</span><span id="line-921"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">enumFromThen</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-922"></span><span>    </span><span class="hs-identifier">enumFromThen</span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">integralEnumFromThen</span><span>
</span><span id="line-923"></span><span>    </span><span class="hs-comment">-- See Note [Stable Unfolding for list producers] in GHC.Enum</span><span>
</span><span id="line-924"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">enumFromTo</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-925"></span><span>    </span><span class="hs-identifier">enumFromTo</span><span>          </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">integralEnumFromTo</span><span>
</span><span id="line-926"></span><span>    </span><span class="hs-comment">-- See Note [Stable Unfolding for list producers] in GHC.Enum</span><span>
</span><span id="line-927"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">enumFromThenTo</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-928"></span><span>    </span><span class="hs-identifier">enumFromThenTo</span><span>      </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">integralEnumFromThenTo</span><span class="hs-cpp">
#else
</span><span>    </span><span class="hs-comment">-- See Note [Stable Unfolding for list producers] in GHC.Enum</span><span>
</span><span id="line-931"></span><span>    </span><span class="hs-pragma">{-# INLINABLE</span><span> </span><span class="annot"><a href="GHC.Enum.html#enumFrom"><span class="hs-pragma hs-type">enumFrom</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-932"></span><span>    </span><span id="local-6989586621679496298"><span class="annot"><span class="annottext">enumFrom :: Word64 -&gt; [Word64]
</span><a href="GHC.Enum.html#enumFrom"><span class="hs-identifier hs-var hs-var hs-var hs-var">enumFrom</span></a></span></span><span> </span><span id="local-6989586621679496297"><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496297"><span class="hs-identifier hs-var">w</span></a></span></span><span>
</span><span id="line-933"></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(Word -&gt; Word64) -&gt; [Word] -&gt; [Word64]
forall a b. (a -&gt; b) -&gt; [a] -&gt; [b]
</span><a href="GHC.Base.html#map"><span class="hs-identifier hs-var">map</span></a></span><span> </span><span class="annot"><span class="annottext">Word -&gt; Word64
</span><a href="GHC.Word.html#wordToWord64"><span class="hs-identifier hs-var">wordToWord64</span></a></span><span>
</span><span id="line-934"></span><span>        </span><span class="annot"><span class="annottext">([Word] -&gt; [Word64]) -&gt; [Word] -&gt; [Word64]
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">Word -&gt; [Word]
forall a. Enum a =&gt; a -&gt; [a]
</span><a href="GHC.Enum.html#enumFrom"><span class="hs-identifier hs-var">enumFrom</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word64 -&gt; Word
</span><a href="GHC.Word.html#word64ToWord"><span class="hs-identifier hs-var">word64ToWord</span></a></span><span> </span><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496297"><span class="hs-identifier hs-var">w</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-935"></span><span>
</span><span id="line-936"></span><span>    </span><span class="hs-comment">-- See Note [Stable Unfolding for list producers] in GHC.Enum</span><span>
</span><span id="line-937"></span><span>    </span><span class="hs-pragma">{-# INLINABLE</span><span> </span><span class="annot"><a href="GHC.Enum.html#enumFromThen"><span class="hs-pragma hs-type">enumFromThen</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-938"></span><span>    </span><span id="local-6989586621679496293"><span class="annot"><span class="annottext">enumFromThen :: Word64 -&gt; Word64 -&gt; [Word64]
</span><a href="GHC.Enum.html#enumFromThen"><span class="hs-identifier hs-var hs-var hs-var hs-var">enumFromThen</span></a></span></span><span> </span><span id="local-6989586621679496292"><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496292"><span class="hs-identifier hs-var">w</span></a></span></span><span> </span><span id="local-6989586621679496291"><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496291"><span class="hs-identifier hs-var">s</span></a></span></span><span>
</span><span id="line-939"></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(Word -&gt; Word64) -&gt; [Word] -&gt; [Word64]
forall a b. (a -&gt; b) -&gt; [a] -&gt; [b]
</span><a href="GHC.Base.html#map"><span class="hs-identifier hs-var">map</span></a></span><span> </span><span class="annot"><span class="annottext">Word -&gt; Word64
</span><a href="GHC.Word.html#wordToWord64"><span class="hs-identifier hs-var">wordToWord64</span></a></span><span>
</span><span id="line-940"></span><span>        </span><span class="annot"><span class="annottext">([Word] -&gt; [Word64]) -&gt; [Word] -&gt; [Word64]
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">Word -&gt; Word -&gt; [Word]
forall a. Enum a =&gt; a -&gt; a -&gt; [a]
</span><a href="GHC.Enum.html#enumFromThen"><span class="hs-identifier hs-var">enumFromThen</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word64 -&gt; Word
</span><a href="GHC.Word.html#word64ToWord"><span class="hs-identifier hs-var">word64ToWord</span></a></span><span> </span><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496292"><span class="hs-identifier hs-var">w</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word64 -&gt; Word
</span><a href="GHC.Word.html#word64ToWord"><span class="hs-identifier hs-var">word64ToWord</span></a></span><span> </span><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496291"><span class="hs-identifier hs-var">s</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-941"></span><span>
</span><span id="line-942"></span><span>    </span><span class="hs-comment">-- See Note [Stable Unfolding for list producers] in GHC.Enum</span><span>
</span><span id="line-943"></span><span>    </span><span class="hs-pragma">{-# INLINABLE</span><span> </span><span class="annot"><a href="GHC.Enum.html#enumFromTo"><span class="hs-pragma hs-type">enumFromTo</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-944"></span><span>    </span><span id="local-6989586621679496289"><span class="annot"><span class="annottext">enumFromTo :: Word64 -&gt; Word64 -&gt; [Word64]
</span><a href="GHC.Enum.html#enumFromTo"><span class="hs-identifier hs-var hs-var hs-var hs-var">enumFromTo</span></a></span></span><span> </span><span id="local-6989586621679496288"><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496288"><span class="hs-identifier hs-var">w1</span></a></span></span><span> </span><span id="local-6989586621679496287"><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496287"><span class="hs-identifier hs-var">w2</span></a></span></span><span>
</span><span id="line-945"></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(Word -&gt; Word64) -&gt; [Word] -&gt; [Word64]
forall a b. (a -&gt; b) -&gt; [a] -&gt; [b]
</span><a href="GHC.Base.html#map"><span class="hs-identifier hs-var">map</span></a></span><span> </span><span class="annot"><span class="annottext">Word -&gt; Word64
</span><a href="GHC.Word.html#wordToWord64"><span class="hs-identifier hs-var">wordToWord64</span></a></span><span>
</span><span id="line-946"></span><span>        </span><span class="annot"><span class="annottext">([Word] -&gt; [Word64]) -&gt; [Word] -&gt; [Word64]
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">Word -&gt; Word -&gt; [Word]
forall a. Enum a =&gt; a -&gt; a -&gt; [a]
</span><a href="GHC.Enum.html#enumFromTo"><span class="hs-identifier hs-var">enumFromTo</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word64 -&gt; Word
</span><a href="GHC.Word.html#word64ToWord"><span class="hs-identifier hs-var">word64ToWord</span></a></span><span> </span><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496288"><span class="hs-identifier hs-var">w1</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word64 -&gt; Word
</span><a href="GHC.Word.html#word64ToWord"><span class="hs-identifier hs-var">word64ToWord</span></a></span><span> </span><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496287"><span class="hs-identifier hs-var">w2</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-947"></span><span>
</span><span id="line-948"></span><span>    </span><span class="hs-comment">-- See Note [Stable Unfolding for list producers] in GHC.Enum</span><span>
</span><span id="line-949"></span><span>    </span><span class="hs-pragma">{-# INLINABLE</span><span> </span><span class="annot"><a href="GHC.Enum.html#enumFromThenTo"><span class="hs-pragma hs-type">enumFromThenTo</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-950"></span><span>    </span><span id="local-6989586621679496285"><span class="annot"><span class="annottext">enumFromThenTo :: Word64 -&gt; Word64 -&gt; Word64 -&gt; [Word64]
</span><a href="GHC.Enum.html#enumFromThenTo"><span class="hs-identifier hs-var hs-var hs-var hs-var">enumFromThenTo</span></a></span></span><span> </span><span id="local-6989586621679496284"><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496284"><span class="hs-identifier hs-var">w1</span></a></span></span><span> </span><span id="local-6989586621679496283"><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496283"><span class="hs-identifier hs-var">s</span></a></span></span><span> </span><span id="local-6989586621679496282"><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496282"><span class="hs-identifier hs-var">w2</span></a></span></span><span>
</span><span id="line-951"></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(Word -&gt; Word64) -&gt; [Word] -&gt; [Word64]
forall a b. (a -&gt; b) -&gt; [a] -&gt; [b]
</span><a href="GHC.Base.html#map"><span class="hs-identifier hs-var">map</span></a></span><span> </span><span class="annot"><span class="annottext">Word -&gt; Word64
</span><a href="GHC.Word.html#wordToWord64"><span class="hs-identifier hs-var">wordToWord64</span></a></span><span>
</span><span id="line-952"></span><span>        </span><span class="annot"><span class="annottext">([Word] -&gt; [Word64]) -&gt; [Word] -&gt; [Word64]
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">Word -&gt; Word -&gt; Word -&gt; [Word]
forall a. Enum a =&gt; a -&gt; a -&gt; a -&gt; [a]
</span><a href="GHC.Enum.html#enumFromThenTo"><span class="hs-identifier hs-var">enumFromThenTo</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word64 -&gt; Word
</span><a href="GHC.Word.html#word64ToWord"><span class="hs-identifier hs-var">word64ToWord</span></a></span><span> </span><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496284"><span class="hs-identifier hs-var">w1</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word64 -&gt; Word
</span><a href="GHC.Word.html#word64ToWord"><span class="hs-identifier hs-var">word64ToWord</span></a></span><span> </span><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496283"><span class="hs-identifier hs-var">s</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word64 -&gt; Word
</span><a href="GHC.Word.html#word64ToWord"><span class="hs-identifier hs-var">word64ToWord</span></a></span><span> </span><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496282"><span class="hs-identifier hs-var">w2</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-953"></span><span>
</span><span id="line-954"></span><span class="annot"><a href="GHC.Word.html#word64ToWord"><span class="hs-identifier hs-type">word64ToWord</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Word.html#Word64"><span class="hs-identifier hs-type">Word64</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Word"><span class="hs-identifier hs-type">Word</span></a></span><span>
</span><span id="line-955"></span><span id="word64ToWord"><span class="annot"><span class="annottext">word64ToWord :: Word64 -&gt; Word
</span><a href="GHC.Word.html#word64ToWord"><span class="hs-identifier hs-var hs-var">word64ToWord</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496281"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496281"><span class="hs-identifier hs-var">w#</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word
</span><a href="../../ghc-prim/src/GHC.Types.html#W%23"><span class="hs-identifier hs-var">W#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496281"><span class="hs-identifier hs-var">w#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-956"></span><span>
</span><span id="line-957"></span><span class="annot"><a href="GHC.Word.html#wordToWord64"><span class="hs-identifier hs-type">wordToWord64</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Word"><span class="hs-identifier hs-type">Word</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word64"><span class="hs-identifier hs-type">Word64</span></a></span><span>
</span><span id="line-958"></span><span id="wordToWord64"><span class="annot"><span class="annottext">wordToWord64 :: Word -&gt; Word64
</span><a href="GHC.Word.html#wordToWord64"><span class="hs-identifier hs-var hs-var">wordToWord64</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#W%23"><span class="hs-identifier hs-type">W#</span></a></span><span> </span><span id="local-6989586621679496280"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496280"><span class="hs-identifier hs-var">w#</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word64
</span><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-var">W64#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496280"><span class="hs-identifier hs-var">w#</span></a></span><span class="hs-special">)</span><span class="hs-cpp">
#endif
</span><span>
</span><span id="line-961"></span><span>
</span><span id="line-962"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-963"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="GHC.Real.html#Integral"><span class="hs-identifier hs-type">Integral</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word64"><span class="hs-identifier hs-type">Word64</span></a></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-964"></span><span>    </span><span id="local-6989586621679496264"><span class="annot"><span class="annottext">quot :: Word64 -&gt; Word64 -&gt; Word64
</span><a href="#local-6989586621679496264"><span class="hs-identifier hs-var hs-var hs-var hs-var">quot</span></a></span></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496263"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496263"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496262"><span class="annot"><span class="annottext">y :: Word64
</span><a href="#local-6989586621679496262"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496261"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496261"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-965"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496262"><span class="hs-identifier hs-var">y</span></a></span><span> </span><span class="annot"><span class="annottext">Word64 -&gt; Word64 -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%2F%3D"><span class="hs-operator hs-var">/=</span></a></span><span> </span><span class="annot"><span class="annottext">Word64
</span><span class="hs-number">0</span></span><span>                    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word64
</span><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-var">W64#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496263"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#quotWord%23"><span class="hs-operator hs-var">`quotWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496261"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-966"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>                 </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word64
forall a. a
</span><a href="GHC.Real.html#divZeroError"><span class="hs-identifier hs-var">divZeroError</span></a></span><span>
</span><span id="line-967"></span><span>    </span><span id="local-6989586621679496258"><span class="annot"><span class="annottext">rem :: Word64 -&gt; Word64 -&gt; Word64
</span><a href="#local-6989586621679496258"><span class="hs-identifier hs-var hs-var hs-var hs-var">rem</span></a></span></span><span>     </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496257"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496257"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496256"><span class="annot"><span class="annottext">y :: Word64
</span><a href="#local-6989586621679496256"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496255"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496255"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-968"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496256"><span class="hs-identifier hs-var">y</span></a></span><span> </span><span class="annot"><span class="annottext">Word64 -&gt; Word64 -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%2F%3D"><span class="hs-operator hs-var">/=</span></a></span><span> </span><span class="annot"><span class="annottext">Word64
</span><span class="hs-number">0</span></span><span>                    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word64
</span><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-var">W64#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496257"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#remWord%23"><span class="hs-operator hs-var">`remWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496255"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-969"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>                 </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word64
forall a. a
</span><a href="GHC.Real.html#divZeroError"><span class="hs-identifier hs-var">divZeroError</span></a></span><span>
</span><span id="line-970"></span><span>    </span><span id="local-6989586621679496252"><span class="annot"><span class="annottext">div :: Word64 -&gt; Word64 -&gt; Word64
</span><a href="#local-6989586621679496252"><span class="hs-identifier hs-var hs-var hs-var hs-var">div</span></a></span></span><span>     </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496251"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496251"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496250"><span class="annot"><span class="annottext">y :: Word64
</span><a href="#local-6989586621679496250"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496249"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496249"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-971"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496250"><span class="hs-identifier hs-var">y</span></a></span><span> </span><span class="annot"><span class="annottext">Word64 -&gt; Word64 -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%2F%3D"><span class="hs-operator hs-var">/=</span></a></span><span> </span><span class="annot"><span class="annottext">Word64
</span><span class="hs-number">0</span></span><span>                    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word64
</span><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-var">W64#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496251"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#quotWord%23"><span class="hs-operator hs-var">`quotWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496249"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-972"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>                 </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word64
forall a. a
</span><a href="GHC.Real.html#divZeroError"><span class="hs-identifier hs-var">divZeroError</span></a></span><span>
</span><span id="line-973"></span><span>    </span><span id="local-6989586621679496246"><span class="annot"><span class="annottext">mod :: Word64 -&gt; Word64 -&gt; Word64
</span><a href="#local-6989586621679496246"><span class="hs-identifier hs-var hs-var hs-var hs-var">mod</span></a></span></span><span>     </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496245"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496245"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496244"><span class="annot"><span class="annottext">y :: Word64
</span><a href="#local-6989586621679496244"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496243"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496243"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-974"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496244"><span class="hs-identifier hs-var">y</span></a></span><span> </span><span class="annot"><span class="annottext">Word64 -&gt; Word64 -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%2F%3D"><span class="hs-operator hs-var">/=</span></a></span><span> </span><span class="annot"><span class="annottext">Word64
</span><span class="hs-number">0</span></span><span>                    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word64
</span><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-var">W64#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496245"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#remWord%23"><span class="hs-operator hs-var">`remWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496243"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-975"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>                 </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word64
forall a. a
</span><a href="GHC.Real.html#divZeroError"><span class="hs-identifier hs-var">divZeroError</span></a></span><span>
</span><span id="line-976"></span><span>    </span><span id="local-6989586621679496240"><span class="annot"><span class="annottext">quotRem :: Word64 -&gt; Word64 -&gt; (Word64, Word64)
</span><a href="#local-6989586621679496240"><span class="hs-identifier hs-var hs-var hs-var hs-var">quotRem</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496239"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496239"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496238"><span class="annot"><span class="annottext">y :: Word64
</span><a href="#local-6989586621679496238"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496237"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496237"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-977"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496238"><span class="hs-identifier hs-var">y</span></a></span><span> </span><span class="annot"><span class="annottext">Word64 -&gt; Word64 -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%2F%3D"><span class="hs-operator hs-var">/=</span></a></span><span> </span><span class="annot"><span class="annottext">Word64
</span><span class="hs-number">0</span></span><span>                  </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496239"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; (# Word#, Word# #)
</span><a href="../../ghc-prim/src/GHC.Prim.html#quotRemWord%23"><span class="hs-operator hs-var">`quotRemWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496237"><span class="hs-identifier hs-var">y#</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-978"></span><span>                                    </span><span class="hs-special">(#</span><span> </span><span id="local-6989586621679496236"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496236"><span class="hs-identifier hs-var">q</span></a></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621679496235"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496235"><span class="hs-identifier hs-var">r</span></a></span></span><span> </span><span class="hs-special">#)</span><span> </span><span class="hs-glyph">-&gt;</span><span>
</span><span id="line-979"></span><span>                                        </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word64
</span><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-var">W64#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496236"><span class="hs-identifier hs-var">q</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word64
</span><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-var">W64#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496235"><span class="hs-identifier hs-var">r</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-980"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>                 </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(Word64, Word64)
forall a. a
</span><a href="GHC.Real.html#divZeroError"><span class="hs-identifier hs-var">divZeroError</span></a></span><span>
</span><span id="line-981"></span><span>    </span><span id="local-6989586621679496232"><span class="annot"><span class="annottext">divMod :: Word64 -&gt; Word64 -&gt; (Word64, Word64)
</span><a href="#local-6989586621679496232"><span class="hs-identifier hs-var hs-var hs-var hs-var">divMod</span></a></span></span><span>  </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496231"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496231"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496230"><span class="annot"><span class="annottext">y :: Word64
</span><a href="#local-6989586621679496230"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496229"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496229"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-982"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496230"><span class="hs-identifier hs-var">y</span></a></span><span> </span><span class="annot"><span class="annottext">Word64 -&gt; Word64 -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%2F%3D"><span class="hs-operator hs-var">/=</span></a></span><span> </span><span class="annot"><span class="annottext">Word64
</span><span class="hs-number">0</span></span><span>                    </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word64
</span><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-var">W64#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496231"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#quotWord%23"><span class="hs-operator hs-var">`quotWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496229"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word64
</span><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-var">W64#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496231"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#remWord%23"><span class="hs-operator hs-var">`remWord#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496229"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-983"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>                 </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(Word64, Word64)
forall a. a
</span><a href="GHC.Real.html#divZeroError"><span class="hs-identifier hs-var">divZeroError</span></a></span><span>
</span><span id="line-984"></span><span>    </span><span id="local-6989586621679496228"><span class="annot"><span class="annottext">toInteger :: Word64 -&gt; Integer
</span><a href="GHC.Real.html#toInteger"><span class="hs-identifier hs-var hs-var hs-var hs-var">toInteger</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496227"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496227"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-985"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496226"><span class="hs-identifier hs-var">i#</span></a></span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#%3E%3D%23"><span class="hs-operator hs-var">&gt;=#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><span class="hs-number">0#</span></span><span class="hs-special">)</span><span>       </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Integer
</span><a href="../../ghc-bignum/src/GHC.Num.Integer.html#IS"><span class="hs-identifier hs-var">IS</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496226"><span class="hs-identifier hs-var">i#</span></a></span><span>
</span><span id="line-986"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>                 </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Integer
</span><a href="../../ghc-bignum/src/GHC.Num.Integer.html#integerFromWord%23"><span class="hs-identifier hs-var">integerFromWord#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496227"><span class="hs-identifier hs-var">x#</span></a></span><span>
</span><span id="line-987"></span><span>        </span><span class="hs-keyword">where</span><span>
</span><span id="line-988"></span><span>        </span><span class="hs-glyph">!</span><span id="local-6989586621679496226"><span class="annot"><span class="annottext">i# :: Int#
</span><a href="#local-6989586621679496226"><span class="hs-identifier hs-var hs-var">i#</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#word2Int%23"><span class="hs-identifier hs-var">word2Int#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496227"><span class="hs-identifier hs-var">x#</span></a></span><span>
</span><span id="line-989"></span><span>
</span><span id="line-990"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-991"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679496197"><span id="local-6989586621679496199"><span id="local-6989586621679496209"><span id="local-6989586621679496211"><span id="local-6989586621679496213"><span id="local-6989586621679496216"><span class="annot"><a href="Data.Bits.html#Bits"><span class="hs-identifier hs-type">Bits</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word64"><span class="hs-identifier hs-type">Word64</span></a></span></span></span></span></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-992"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="Data.Bits.html#shift"><span class="hs-pragma hs-type">shift</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-993"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="Data.Bits.html#bit"><span class="hs-pragma hs-type">bit</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-994"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="Data.Bits.html#testBit"><span class="hs-pragma hs-type">testBit</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-995"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="Data.Bits.html#popCount"><span class="hs-pragma hs-type">popCount</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-996"></span><span>
</span><span id="line-997"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496195"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496195"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496194"><span class="annot"><span class="annottext">.&amp;. :: Word64 -&gt; Word64 -&gt; Word64
</span><a href="#local-6989586621679496194"><span class="hs-operator hs-var hs-var hs-var hs-var">.&amp;.</span></a></span></span><span>   </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496193"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496193"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word64
</span><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-var">W64#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496195"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#and%23"><span class="hs-operator hs-var">`and#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496193"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-998"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496192"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496192"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496191"><span class="annot"><span class="annottext">.|. :: Word64 -&gt; Word64 -&gt; Word64
</span><a href="#local-6989586621679496191"><span class="hs-operator hs-var hs-var hs-var hs-var">.|.</span></a></span></span><span>   </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496190"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496190"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word64
</span><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-var">W64#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496192"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#or%23"><span class="hs-operator hs-var">`or#`</span></a></span><span>  </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496190"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-999"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496189"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496189"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496188"><span class="annot"><span class="annottext">xor :: Word64 -&gt; Word64 -&gt; Word64
</span><a href="#local-6989586621679496188"><span class="hs-operator hs-var hs-var hs-var hs-var">`xor`</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496187"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496187"><span class="hs-identifier hs-var">y#</span></a></span></span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word64
</span><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-var">W64#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496189"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#xor%23"><span class="hs-operator hs-var">`xor#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496187"><span class="hs-identifier hs-var">y#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-1000"></span><span>    </span><span id="local-6989586621679496186"><span class="annot"><span class="annottext">complement :: Word64 -&gt; Word64
</span><a href="#local-6989586621679496186"><span class="hs-identifier hs-var hs-var hs-var hs-var">complement</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496185"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496185"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span>       </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word64
</span><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-var">W64#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496185"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#xor%23"><span class="hs-operator hs-var">`xor#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496184"><span class="hs-identifier hs-var">mb#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-1001"></span><span>        </span><span class="hs-keyword">where</span><span> </span><span class="hs-glyph">!</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496184"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496184"><span class="hs-identifier hs-var">mb#</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word64
forall a. Bounded a =&gt; a
</span><a href="GHC.Enum.html#maxBound"><span class="hs-identifier hs-var">maxBound</span></a></span><span>
</span><span id="line-1002"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496182"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496182"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496181"><span class="annot"><span class="annottext">shift :: Word64 -&gt; Int -&gt; Word64
</span><a href="#local-6989586621679496181"><span class="hs-operator hs-var hs-var hs-var hs-var">`shift`</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-type">I#</span></a></span><span> </span><span id="local-6989586621679496180"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496180"><span class="hs-identifier hs-var">i#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-1003"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496180"><span class="hs-identifier hs-var">i#</span></a></span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#%3E%3D%23"><span class="hs-operator hs-var">&gt;=#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><span class="hs-number">0#</span></span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word64
</span><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-var">W64#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496182"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="GHC.Base.html#shiftL%23"><span class="hs-operator hs-var">`shiftL#`</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496180"><span class="hs-identifier hs-var">i#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-1004"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>            </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word64
</span><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-var">W64#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496182"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="GHC.Base.html#shiftRL%23"><span class="hs-operator hs-var">`shiftRL#`</span></a></span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#negateInt%23"><span class="hs-identifier hs-var">negateInt#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496180"><span class="hs-identifier hs-var">i#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-1005"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496179"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496179"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496178"><span class="annot"><span class="annottext">shiftL :: Word64 -&gt; Int -&gt; Word64
</span><a href="#local-6989586621679496178"><span class="hs-operator hs-var hs-var hs-var hs-var">`shiftL`</span></a></span></span><span>       </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-type">I#</span></a></span><span> </span><span id="local-6989586621679496177"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496177"><span class="hs-identifier hs-var">i#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-1006"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496177"><span class="hs-identifier hs-var">i#</span></a></span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#%3E%3D%23"><span class="hs-operator hs-var">&gt;=#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><span class="hs-number">0#</span></span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word64
</span><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-var">W64#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496179"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="GHC.Base.html#shiftL%23"><span class="hs-operator hs-var">`shiftL#`</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496177"><span class="hs-identifier hs-var">i#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-1007"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>            </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word64
forall a. a
</span><a href="GHC.Real.html#overflowError"><span class="hs-identifier hs-var">overflowError</span></a></span><span>
</span><span id="line-1008"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496176"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496176"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496175"><span class="annot"><span class="annottext">unsafeShiftL :: Word64 -&gt; Int -&gt; Word64
</span><a href="#local-6989586621679496175"><span class="hs-operator hs-var hs-var hs-var hs-var">`unsafeShiftL`</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-type">I#</span></a></span><span> </span><span id="local-6989586621679496174"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496174"><span class="hs-identifier hs-var">i#</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word64
</span><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-var">W64#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496176"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#uncheckedShiftL%23"><span class="hs-operator hs-var">`uncheckedShiftL#`</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496174"><span class="hs-identifier hs-var">i#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-1009"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496173"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496173"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496172"><span class="annot"><span class="annottext">shiftR :: Word64 -&gt; Int -&gt; Word64
</span><a href="#local-6989586621679496172"><span class="hs-operator hs-var hs-var hs-var hs-var">`shiftR`</span></a></span></span><span>       </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-type">I#</span></a></span><span> </span><span id="local-6989586621679496171"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496171"><span class="hs-identifier hs-var">i#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-1010"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496171"><span class="hs-identifier hs-var">i#</span></a></span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#%3E%3D%23"><span class="hs-operator hs-var">&gt;=#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><span class="hs-number">0#</span></span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word64
</span><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-var">W64#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496173"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="GHC.Base.html#shiftRL%23"><span class="hs-operator hs-var">`shiftRL#`</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496171"><span class="hs-identifier hs-var">i#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-1011"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>            </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word64
forall a. a
</span><a href="GHC.Real.html#overflowError"><span class="hs-identifier hs-var">overflowError</span></a></span><span>
</span><span id="line-1012"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496170"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496170"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496169"><span class="annot"><span class="annottext">unsafeShiftR :: Word64 -&gt; Int -&gt; Word64
</span><a href="#local-6989586621679496169"><span class="hs-operator hs-var hs-var hs-var hs-var">`unsafeShiftR`</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-type">I#</span></a></span><span> </span><span id="local-6989586621679496168"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496168"><span class="hs-identifier hs-var">i#</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word64
</span><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-var">W64#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496170"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#uncheckedShiftRL%23"><span class="hs-operator hs-var">`uncheckedShiftRL#`</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496168"><span class="hs-identifier hs-var">i#</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-1013"></span><span>    </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496167"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496167"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496166"><span class="annot"><span class="annottext">rotate :: Word64 -&gt; Int -&gt; Word64
</span><a href="#local-6989586621679496166"><span class="hs-operator hs-var hs-var hs-var hs-var">`rotate`</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-type">I#</span></a></span><span> </span><span id="local-6989586621679496165"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496165"><span class="hs-identifier hs-var">i#</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-1014"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#isTrue%23"><span class="hs-identifier hs-var">isTrue#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496164"><span class="hs-identifier hs-var">i'#</span></a></span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#%3D%3D%23"><span class="hs-operator hs-var">==#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><span class="hs-number">0#</span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word64
</span><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-var">W64#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496167"><span class="hs-identifier hs-var">x#</span></a></span><span>
</span><span id="line-1015"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>            </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word64
</span><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-var">W64#</span></a></span><span> </span><span class="hs-special">(</span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496167"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#uncheckedShiftL%23"><span class="hs-operator hs-var">`uncheckedShiftL#`</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496164"><span class="hs-identifier hs-var">i'#</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#or%23"><span class="hs-operator hs-var">`or#`</span></a></span><span>
</span><span id="line-1016"></span><span>                                       </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496167"><span class="hs-identifier hs-var">x#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#uncheckedShiftRL%23"><span class="hs-operator hs-var">`uncheckedShiftRL#`</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int#
</span><span class="hs-number">64#</span></span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#-%23"><span class="hs-operator hs-var">-#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496164"><span class="hs-identifier hs-var">i'#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-1017"></span><span>        </span><span class="hs-keyword">where</span><span>
</span><span id="line-1018"></span><span>        </span><span class="hs-glyph">!</span><span id="local-6989586621679496164"><span class="annot"><span class="annottext">i'# :: Int#
</span><a href="#local-6989586621679496164"><span class="hs-identifier hs-var hs-var">i'#</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#word2Int%23"><span class="hs-identifier hs-var">word2Int#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#int2Word%23"><span class="hs-identifier hs-var">int2Word#</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679496165"><span class="hs-identifier hs-var">i#</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#and%23"><span class="hs-operator hs-var">`and#`</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><span class="hs-number">63##</span></span><span class="hs-special">)</span><span>
</span><span id="line-1019"></span><span>    </span><span id="local-6989586621679496161"><span class="annot"><span class="annottext">bitSizeMaybe :: Word64 -&gt; Maybe Int
</span><a href="#local-6989586621679496161"><span class="hs-identifier hs-var hs-var hs-var hs-var">bitSizeMaybe</span></a></span></span><span> </span><span id="local-6989586621679496160"><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496160"><span class="hs-identifier hs-var">i</span></a></span></span><span>            </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Maybe Int
forall a. a -&gt; Maybe a
</span><a href="GHC.Maybe.html#Just"><span class="hs-identifier hs-var">Just</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word64 -&gt; Int
forall b. FiniteBits b =&gt; b -&gt; Int
</span><a href="Data.Bits.html#finiteBitSize"><span class="hs-identifier hs-var">finiteBitSize</span></a></span><span> </span><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496160"><span class="hs-identifier hs-var">i</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-1020"></span><span>    </span><span id="local-6989586621679496158"><span class="annot"><span class="annottext">bitSize :: Word64 -&gt; Int
</span><a href="#local-6989586621679496158"><span class="hs-identifier hs-var hs-var hs-var hs-var">bitSize</span></a></span></span><span> </span><span id="local-6989586621679496157"><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496157"><span class="hs-identifier hs-var">i</span></a></span></span><span>                 </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word64 -&gt; Int
forall b. FiniteBits b =&gt; b -&gt; Int
</span><a href="Data.Bits.html#finiteBitSize"><span class="hs-identifier hs-var">finiteBitSize</span></a></span><span> </span><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496157"><span class="hs-identifier hs-var">i</span></a></span><span>
</span><span id="line-1021"></span><span>    </span><span id="local-6989586621679496156"><span class="annot"><span class="annottext">isSigned :: Word64 -&gt; Bool
</span><a href="#local-6989586621679496156"><span class="hs-identifier hs-var hs-var hs-var hs-var">isSigned</span></a></span></span><span> </span><span class="annot"><span class="annottext">Word64
</span><span class="hs-identifier">_</span></span><span>                </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="../../ghc-prim/src/GHC.Types.html#False"><span class="hs-identifier hs-var">False</span></a></span><span>
</span><span id="line-1022"></span><span>    </span><span id="local-6989586621679496155"><span class="annot"><span class="annottext">popCount :: Word64 -&gt; Int
</span><a href="#local-6989586621679496155"><span class="hs-identifier hs-var hs-var hs-var hs-var">popCount</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496154"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496154"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int
</span><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-var">I#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#word2Int%23"><span class="hs-identifier hs-var">word2Int#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#popCnt64%23"><span class="hs-identifier hs-var">popCnt64#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496154"><span class="hs-identifier hs-var">x#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-1023"></span><span>    </span><span id="local-6989586621679496151"><span class="annot"><span class="annottext">bit :: Int -&gt; Word64
</span><a href="#local-6989586621679496151"><span class="hs-identifier hs-var hs-var hs-var hs-var">bit</span></a></span></span><span>                       </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Word64
forall a. (Bits a, Num a) =&gt; Int -&gt; a
</span><a href="Data.Bits.html#bitDefault"><span class="hs-identifier hs-var">bitDefault</span></a></span><span>
</span><span id="line-1024"></span><span>    </span><span id="local-6989586621679496148"><span class="annot"><span class="annottext">testBit :: Word64 -&gt; Int -&gt; Bool
</span><a href="#local-6989586621679496148"><span class="hs-identifier hs-var hs-var hs-var hs-var">testBit</span></a></span></span><span>                   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word64 -&gt; Int -&gt; Bool
forall a. (Bits a, Num a) =&gt; a -&gt; Int -&gt; Bool
</span><a href="Data.Bits.html#testBitDefault"><span class="hs-identifier hs-var">testBitDefault</span></a></span><span>
</span><span id="line-1025"></span><span>
</span><span id="line-1026"></span><span class="hs-pragma">{-# RULES</span><span>
</span><span id="line-1027"></span><span class="annot"><span class="hs-pragma">&quot;fromIntegral/a-&gt;Word64&quot;</span></span><span> </span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">\</span><span id="local-6989586621679496147"><span class="annot"><a href="#local-6989586621679496147"><span class="hs-pragma hs-var">x</span></a></span></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="hs-pragma">case</span><span> </span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679496147"><span class="hs-pragma hs-type">x</span></a></span><span> </span><span class="hs-pragma">of</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#W%23"><span class="hs-pragma hs-type">W#</span></a></span><span> </span><span id="local-6989586621679496146"><span class="annot"><a href="#local-6989586621679496146"><span class="hs-pragma hs-var">x#</span></a></span></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-pragma hs-type">W64#</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679496146"><span class="hs-pragma hs-type">x#</span></a></span><span>
</span><span id="line-1028"></span><span class="annot"><span class="hs-pragma">&quot;fromIntegral/Word64-&gt;a&quot;</span></span><span> </span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">\</span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-pragma hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496145"><span class="annot"><a href="#local-6989586621679496145"><span class="hs-pragma hs-var">x#</span></a></span></span><span class="hs-pragma">)</span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#W%23"><span class="hs-pragma hs-type">W#</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679496145"><span class="hs-pragma hs-type">x#</span></a></span><span class="hs-pragma">)</span><span>
</span><span id="line-1029"></span><span>  </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-1030"></span><span>
</span><span id="line-1031"></span><span class="annot"><a href="GHC.Word.html#uncheckedShiftL64%23"><span class="hs-identifier hs-type">uncheckedShiftL64#</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Word%23"><span class="hs-identifier hs-type">Word#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Int%23"><span class="hs-identifier hs-type">Int#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Word%23"><span class="hs-identifier hs-type">Word#</span></a></span><span>
</span><span id="line-1032"></span><span id="uncheckedShiftL64%23"><span class="annot"><span class="annottext">uncheckedShiftL64# :: Word# -&gt; Int# -&gt; Word#
</span><a href="GHC.Word.html#uncheckedShiftL64%23"><span class="hs-identifier hs-var hs-var">uncheckedShiftL64#</span></a></span></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#uncheckedShiftL%23"><span class="hs-identifier hs-var">uncheckedShiftL#</span></a></span><span>
</span><span id="line-1033"></span><span>
</span><span id="line-1034"></span><span class="annot"><a href="GHC.Word.html#uncheckedShiftRL64%23"><span class="hs-identifier hs-type">uncheckedShiftRL64#</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Word%23"><span class="hs-identifier hs-type">Word#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Int%23"><span class="hs-identifier hs-type">Int#</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Prim.html#Word%23"><span class="hs-identifier hs-type">Word#</span></a></span><span>
</span><span id="line-1035"></span><span id="uncheckedShiftRL64%23"><span class="annot"><span class="annottext">uncheckedShiftRL64# :: Word# -&gt; Int# -&gt; Word#
</span><a href="GHC.Word.html#uncheckedShiftRL64%23"><span class="hs-identifier hs-var hs-var">uncheckedShiftRL64#</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#uncheckedShiftRL%23"><span class="hs-identifier hs-var">uncheckedShiftRL#</span></a></span><span class="hs-cpp">

#endif
</span><span>
</span><span id="line-1039"></span><span class="hs-comment">-- | @since 4.6.0.0</span><span>
</span><span id="line-1040"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="Data.Bits.html#FiniteBits"><span class="hs-identifier hs-type">FiniteBits</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word64"><span class="hs-identifier hs-type">Word64</span></a></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-1041"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="Data.Bits.html#countLeadingZeros"><span class="hs-pragma hs-type">countLeadingZeros</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-1042"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="Data.Bits.html#countTrailingZeros"><span class="hs-pragma hs-type">countTrailingZeros</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-1043"></span><span>    </span><span id="local-6989586621679496139"><span class="annot"><span class="annottext">finiteBitSize :: Word64 -&gt; Int
</span><a href="#local-6989586621679496139"><span class="hs-identifier hs-var hs-var hs-var hs-var">finiteBitSize</span></a></span></span><span> </span><span class="annot"><span class="annottext">Word64
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">64</span></span><span>
</span><span id="line-1044"></span><span>    </span><span id="local-6989586621679496138"><span class="annot"><span class="annottext">countLeadingZeros :: Word64 -&gt; Int
</span><a href="#local-6989586621679496138"><span class="hs-identifier hs-var hs-var hs-var hs-var">countLeadingZeros</span></a></span></span><span>  </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496137"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496137"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int
</span><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-var">I#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#word2Int%23"><span class="hs-identifier hs-var">word2Int#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#clz64%23"><span class="hs-identifier hs-var">clz64#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496137"><span class="hs-identifier hs-var">x#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-1045"></span><span>    </span><span id="local-6989586621679496136"><span class="annot"><span class="annottext">countTrailingZeros :: Word64 -&gt; Int
</span><a href="#local-6989586621679496136"><span class="hs-identifier hs-var hs-var hs-var hs-var">countTrailingZeros</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496135"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496135"><span class="hs-identifier hs-var">x#</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int# -&gt; Int
</span><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-var">I#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Int#
</span><a href="../../ghc-prim/src/GHC.Prim.html#word2Int%23"><span class="hs-identifier hs-var">word2Int#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#ctz64%23"><span class="hs-identifier hs-var">ctz64#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496135"><span class="hs-identifier hs-var">x#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-1046"></span><span>
</span><span id="line-1047"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-1048"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679496130"><span id="local-6989586621679496132"><span class="annot"><a href="GHC.Show.html#Show"><span class="hs-identifier hs-type">Show</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word64"><span class="hs-identifier hs-type">Word64</span></a></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-1049"></span><span>    </span><span id="local-6989586621679496126"><span class="annot"><span class="annottext">showsPrec :: Int -&gt; Word64 -&gt; ShowS
</span><a href="#local-6989586621679496126"><span class="hs-identifier hs-var hs-var hs-var hs-var">showsPrec</span></a></span></span><span> </span><span id="local-6989586621679496125"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679496125"><span class="hs-identifier hs-var">p</span></a></span></span><span> </span><span id="local-6989586621679496124"><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496124"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Integer -&gt; ShowS
forall a. Show a =&gt; Int -&gt; a -&gt; ShowS
</span><a href="GHC.Show.html#showsPrec"><span class="hs-identifier hs-var">showsPrec</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679496125"><span class="hs-identifier hs-var">p</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word64 -&gt; Integer
forall a. Integral a =&gt; a -&gt; Integer
</span><a href="GHC.Real.html#toInteger"><span class="hs-identifier hs-var">toInteger</span></a></span><span> </span><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496124"><span class="hs-identifier hs-var">x</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-1050"></span><span>
</span><span id="line-1051"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-1052"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="GHC.Real.html#Real"><span class="hs-identifier hs-type">Real</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word64"><span class="hs-identifier hs-type">Word64</span></a></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-1053"></span><span>    </span><span id="local-6989586621679496115"><span class="annot"><span class="annottext">toRational :: Word64 -&gt; Rational
</span><a href="GHC.Real.html#toRational"><span class="hs-identifier hs-var hs-var hs-var hs-var">toRational</span></a></span></span><span> </span><span id="local-6989586621679496114"><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496114"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word64 -&gt; Integer
forall a. Integral a =&gt; a -&gt; Integer
</span><a href="GHC.Real.html#toInteger"><span class="hs-identifier hs-var">toInteger</span></a></span><span> </span><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496114"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Integer -&gt; Integer -&gt; Rational
forall a. Integral a =&gt; a -&gt; a -&gt; Ratio a
</span><a href="GHC.Real.html#%25"><span class="hs-operator hs-var">%</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><span class="hs-number">1</span></span><span>
</span><span id="line-1054"></span><span>
</span><span id="line-1055"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-1056"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="GHC.Enum.html#Bounded"><span class="hs-identifier hs-type">Bounded</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word64"><span class="hs-identifier hs-type">Word64</span></a></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-1057"></span><span>    </span><span id="local-6989586621679496110"><span class="annot"><span class="annottext">minBound :: Word64
</span><a href="#local-6989586621679496110"><span class="hs-identifier hs-var hs-var hs-var hs-var">minBound</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word64
</span><span class="hs-number">0</span></span><span>
</span><span id="line-1058"></span><span>    </span><span id="local-6989586621679496108"><span class="annot"><span class="annottext">maxBound :: Word64
</span><a href="#local-6989586621679496108"><span class="hs-identifier hs-var hs-var hs-var hs-var">maxBound</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word64
</span><span class="hs-number">0xFFFFFFFFFFFFFFFF</span></span><span>
</span><span id="line-1059"></span><span>
</span><span id="line-1060"></span><span class="hs-comment">-- | @since 2.01</span><span>
</span><span id="line-1061"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679496097"><span id="local-6989586621679496099"><span id="local-6989586621679496103"><span class="annot"><a href="GHC.Ix.html#Ix"><span class="hs-identifier hs-type">Ix</span></a></span><span> </span><span class="annot"><a href="GHC.Word.html#Word64"><span class="hs-identifier hs-type">Word64</span></a></span></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-1062"></span><span>    </span><span id="local-6989586621679496095"><span class="annot"><span class="annottext">range :: (Word64, Word64) -&gt; [Word64]
</span><a href="#local-6989586621679496095"><span class="hs-identifier hs-var hs-var hs-var hs-var">range</span></a></span></span><span> </span><span class="hs-special">(</span><span id="local-6989586621679496094"><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496094"><span class="hs-identifier hs-var">m</span></a></span></span><span class="hs-special">,</span><span id="local-6989586621679496093"><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496093"><span class="hs-identifier hs-var">n</span></a></span></span><span class="hs-special">)</span><span>         </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">[</span><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496094"><span class="hs-identifier hs-var">m</span></a></span><span class="hs-glyph">..</span><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496093"><span class="hs-identifier hs-var">n</span></a></span><span class="hs-special">]</span><span>
</span><span id="line-1063"></span><span>    </span><span id="local-6989586621679496089"><span class="annot"><span class="annottext">unsafeIndex :: (Word64, Word64) -&gt; Word64 -&gt; Int
</span><a href="#local-6989586621679496089"><span class="hs-identifier hs-var hs-var hs-var hs-var">unsafeIndex</span></a></span></span><span> </span><span class="hs-special">(</span><span id="local-6989586621679496088"><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496088"><span class="hs-identifier hs-var">m</span></a></span></span><span class="hs-special">,</span><span class="annot"><span class="annottext">Word64
</span><span class="hs-identifier">_</span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496087"><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496087"><span class="hs-identifier hs-var">i</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word64 -&gt; Int
forall a b. (Integral a, Num b) =&gt; a -&gt; b
</span><a href="GHC.Real.html#fromIntegral"><span class="hs-identifier hs-var">fromIntegral</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496087"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="annot"><span class="annottext">Word64 -&gt; Word64 -&gt; Word64
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="GHC.Num.html#-"><span class="hs-glyph hs-var">-</span></a></span><span> </span><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496088"><span class="hs-identifier hs-var">m</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-1064"></span><span>    </span><span id="local-6989586621679496084"><span class="annot"><span class="annottext">inRange :: (Word64, Word64) -&gt; Word64 -&gt; Bool
</span><a href="#local-6989586621679496084"><span class="hs-identifier hs-var hs-var hs-var hs-var">inRange</span></a></span></span><span> </span><span class="hs-special">(</span><span id="local-6989586621679496083"><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496083"><span class="hs-identifier hs-var">m</span></a></span></span><span class="hs-special">,</span><span id="local-6989586621679496082"><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496082"><span class="hs-identifier hs-var">n</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679496081"><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496081"><span class="hs-identifier hs-var">i</span></a></span></span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496083"><span class="hs-identifier hs-var">m</span></a></span><span> </span><span class="annot"><span class="annottext">Word64 -&gt; Word64 -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%3C%3D"><span class="hs-operator hs-var">&lt;=</span></a></span><span> </span><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496081"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="annot"><span class="annottext">Bool -&gt; Bool -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%26%26"><span class="hs-operator hs-var">&amp;&amp;</span></a></span><span> </span><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496081"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="annot"><span class="annottext">Word64 -&gt; Word64 -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><a href="../../ghc-prim/src/GHC.Classes.html#%3C%3D"><span class="hs-operator hs-var">&lt;=</span></a></span><span> </span><span class="annot"><span class="annottext">Word64
</span><a href="#local-6989586621679496082"><span class="hs-identifier hs-var">n</span></a></span><span>
</span><span id="line-1065"></span><span>
</span><span id="line-1066"></span><span class="hs-comment">-- | Reverse order of bytes in 'Word64'.</span><span>
</span><span id="line-1067"></span><span class="hs-comment">--</span><span>
</span><span id="line-1068"></span><span class="hs-comment">-- @since 4.7.0.0</span><span class="hs-cpp">
#if WORD_SIZE_IN_BITS &lt; 64
</span><span class="hs-identifier">byteSwap64</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">Word64</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">Word64</span><span>
</span><span id="line-1071"></span><span class="hs-identifier">byteSwap64</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">w#</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">W64#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">byteSwap64#</span><span> </span><span class="hs-identifier">w#</span><span class="hs-special">)</span><span class="hs-cpp">
#else
</span><span class="annot"><a href="GHC.Word.html#byteSwap64"><span class="hs-identifier hs-type">byteSwap64</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Word.html#Word64"><span class="hs-identifier hs-type">Word64</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word64"><span class="hs-identifier hs-type">Word64</span></a></span><span>
</span><span id="line-1074"></span><span id="byteSwap64"><span class="annot"><span class="annottext">byteSwap64 :: Word64 -&gt; Word64
</span><a href="GHC.Word.html#byteSwap64"><span class="hs-identifier hs-var hs-var">byteSwap64</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496080"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496080"><span class="hs-identifier hs-var">w#</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word64
</span><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-var">W64#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#byteSwap%23"><span class="hs-identifier hs-var">byteSwap#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496080"><span class="hs-identifier hs-var">w#</span></a></span><span class="hs-special">)</span><span class="hs-cpp">
#endif
</span><span>
</span><span id="line-1077"></span><span class="hs-comment">-- | Reverse the order of the bits in a 'Word8'.</span><span>
</span><span id="line-1078"></span><span class="hs-comment">--</span><span>
</span><span id="line-1079"></span><span class="hs-comment">-- @since 4.12.0.0</span><span>
</span><span id="line-1080"></span><span class="annot"><a href="GHC.Word.html#bitReverse8"><span class="hs-identifier hs-type">bitReverse8</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-identifier hs-type">Word8</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-identifier hs-type">Word8</span></a></span><span>
</span><span id="line-1081"></span><span id="bitReverse8"><span class="annot"><span class="annottext">bitReverse8 :: Word8 -&gt; Word8
</span><a href="GHC.Word.html#bitReverse8"><span class="hs-identifier hs-var hs-var">bitReverse8</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-type">W8#</span></a></span><span> </span><span id="local-6989586621679496079"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496079"><span class="hs-identifier hs-var">w#</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word8
</span><a href="GHC.Word.html#W8%23"><span class="hs-identifier hs-var">W8#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#narrow8Word%23"><span class="hs-identifier hs-var">narrow8Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#bitReverse8%23"><span class="hs-identifier hs-var">bitReverse8#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496079"><span class="hs-identifier hs-var">w#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-1082"></span><span>
</span><span id="line-1083"></span><span class="hs-comment">-- | Reverse the order of the bits in a 'Word16'.</span><span>
</span><span id="line-1084"></span><span class="hs-comment">--</span><span>
</span><span id="line-1085"></span><span class="hs-comment">-- @since 4.12.0.0</span><span>
</span><span id="line-1086"></span><span class="annot"><a href="GHC.Word.html#bitReverse16"><span class="hs-identifier hs-type">bitReverse16</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-identifier hs-type">Word16</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-identifier hs-type">Word16</span></a></span><span>
</span><span id="line-1087"></span><span id="bitReverse16"><span class="annot"><span class="annottext">bitReverse16 :: Word16 -&gt; Word16
</span><a href="GHC.Word.html#bitReverse16"><span class="hs-identifier hs-var hs-var">bitReverse16</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679496078"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496078"><span class="hs-identifier hs-var">w#</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word16
</span><a href="GHC.Word.html#W16%23"><span class="hs-identifier hs-var">W16#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#narrow16Word%23"><span class="hs-identifier hs-var">narrow16Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#bitReverse16%23"><span class="hs-identifier hs-var">bitReverse16#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496078"><span class="hs-identifier hs-var">w#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-1088"></span><span>
</span><span id="line-1089"></span><span class="hs-comment">-- | Reverse the order of the bits in a 'Word32'.</span><span>
</span><span id="line-1090"></span><span class="hs-comment">--</span><span>
</span><span id="line-1091"></span><span class="hs-comment">-- @since 4.12.0.0</span><span>
</span><span id="line-1092"></span><span class="annot"><a href="GHC.Word.html#bitReverse32"><span class="hs-identifier hs-type">bitReverse32</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-identifier hs-type">Word32</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-identifier hs-type">Word32</span></a></span><span>
</span><span id="line-1093"></span><span id="bitReverse32"><span class="annot"><span class="annottext">bitReverse32 :: Word32 -&gt; Word32
</span><a href="GHC.Word.html#bitReverse32"><span class="hs-identifier hs-var hs-var">bitReverse32</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679496077"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496077"><span class="hs-identifier hs-var">w#</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word32
</span><a href="GHC.Word.html#W32%23"><span class="hs-identifier hs-var">W32#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#narrow32Word%23"><span class="hs-identifier hs-var">narrow32Word#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#bitReverse32%23"><span class="hs-identifier hs-var">bitReverse32#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496077"><span class="hs-identifier hs-var">w#</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-1094"></span><span>
</span><span id="line-1095"></span><span class="hs-comment">-- | Reverse the order of the bits in a 'Word64'.</span><span>
</span><span id="line-1096"></span><span class="hs-comment">--</span><span>
</span><span id="line-1097"></span><span class="hs-comment">-- @since 4.12.0.0</span><span class="hs-cpp">
#if WORD_SIZE_IN_BITS &lt; 64
</span><span class="hs-identifier">bitReverse64</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">Word64</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">Word64</span><span>
</span><span id="line-1100"></span><span class="hs-identifier">bitReverse64</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">w#</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">W64#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">bitReverse64#</span><span> </span><span class="hs-identifier">w#</span><span class="hs-special">)</span><span class="hs-cpp">
#else
</span><span class="annot"><a href="GHC.Word.html#bitReverse64"><span class="hs-identifier hs-type">bitReverse64</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Word.html#Word64"><span class="hs-identifier hs-type">Word64</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word64"><span class="hs-identifier hs-type">Word64</span></a></span><span>
</span><span id="line-1103"></span><span id="bitReverse64"><span class="annot"><span class="annottext">bitReverse64 :: Word64 -&gt; Word64
</span><a href="GHC.Word.html#bitReverse64"><span class="hs-identifier hs-var hs-var">bitReverse64</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679496076"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496076"><span class="hs-identifier hs-var">w#</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word64
</span><a href="GHC.Word.html#W64%23"><span class="hs-identifier hs-var">W64#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#bitReverse%23"><span class="hs-identifier hs-var">bitReverse#</span></a></span><span> </span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679496076"><span class="hs-identifier hs-var">w#</span></a></span><span class="hs-special">)</span><span class="hs-cpp">
#endif
</span><span>
</span><span id="line-1106"></span><span class="hs-comment">-------------------------------------------------------------------------------</span><span>
</span><span id="line-1107"></span><span>
</span><span id="line-1108"></span><span class="hs-pragma">{-# RULES</span><span>
</span><span id="line-1109"></span><span class="annot"><span class="hs-pragma">&quot;fromIntegral/Natural-&gt;Word8&quot;</span></span><span>
</span><span id="line-1110"></span><span>    </span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Word"><span class="hs-pragma hs-type">Word</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-pragma hs-type">Word8</span></a></span><span class="hs-pragma">)</span><span>  </span><span class="annot"><a href="GHC.Base.html#."><span class="hs-pragma hs-type">.</span></a></span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Natural.html#naturalToWord"><span class="hs-pragma hs-type">naturalToWord</span></a></span><span>
</span><span id="line-1111"></span><span class="annot"><span class="hs-pragma">&quot;fromIntegral/Natural-&gt;Word16&quot;</span></span><span>
</span><span id="line-1112"></span><span>    </span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Word"><span class="hs-pragma hs-type">Word</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-pragma hs-type">Word16</span></a></span><span class="hs-pragma">)</span><span> </span><span class="annot"><a href="GHC.Base.html#."><span class="hs-pragma hs-type">.</span></a></span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Natural.html#naturalToWord"><span class="hs-pragma hs-type">naturalToWord</span></a></span><span>
</span><span id="line-1113"></span><span class="annot"><span class="hs-pragma">&quot;fromIntegral/Natural-&gt;Word32&quot;</span></span><span>
</span><span id="line-1114"></span><span>    </span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Word"><span class="hs-pragma hs-type">Word</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-pragma hs-type">Word32</span></a></span><span class="hs-pragma">)</span><span> </span><span class="annot"><a href="GHC.Base.html#."><span class="hs-pragma hs-type">.</span></a></span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Natural.html#naturalToWord"><span class="hs-pragma hs-type">naturalToWord</span></a></span><span>
</span><span id="line-1115"></span><span>  </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-1116"></span><span>
</span><span id="line-1117"></span><span class="hs-pragma">{-# RULES</span><span>
</span><span id="line-1118"></span><span class="annot"><span class="hs-pragma">&quot;fromIntegral/Word8-&gt;Natural&quot;</span></span><span>
</span><span id="line-1119"></span><span>    </span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Natural.html#naturalFromWord"><span class="hs-pragma hs-type">naturalFromWord</span></a></span><span> </span><span class="annot"><a href="GHC.Base.html#."><span class="hs-pragma hs-type">.</span></a></span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="GHC.Word.html#Word8"><span class="hs-pragma hs-type">Word8</span></a></span><span>  </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Word"><span class="hs-pragma hs-type">Word</span></a></span><span class="hs-pragma">)</span><span>
</span><span id="line-1120"></span><span class="annot"><span class="hs-pragma">&quot;fromIntegral/Word16-&gt;Natural&quot;</span></span><span>
</span><span id="line-1121"></span><span>    </span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Natural.html#naturalFromWord"><span class="hs-pragma hs-type">naturalFromWord</span></a></span><span> </span><span class="annot"><a href="GHC.Base.html#."><span class="hs-pragma hs-type">.</span></a></span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="GHC.Word.html#Word16"><span class="hs-pragma hs-type">Word16</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Word"><span class="hs-pragma hs-type">Word</span></a></span><span class="hs-pragma">)</span><span>
</span><span id="line-1122"></span><span class="annot"><span class="hs-pragma">&quot;fromIntegral/Word32-&gt;Natural&quot;</span></span><span>
</span><span id="line-1123"></span><span>    </span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Natural.html#naturalFromWord"><span class="hs-pragma hs-type">naturalFromWord</span></a></span><span> </span><span class="annot"><a href="GHC.Base.html#."><span class="hs-pragma hs-type">.</span></a></span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="GHC.Word.html#Word32"><span class="hs-pragma hs-type">Word32</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Word"><span class="hs-pragma hs-type">Word</span></a></span><span class="hs-pragma">)</span><span>
</span><span id="line-1124"></span><span>  </span><span class="hs-pragma">#-}</span><span class="hs-cpp">

#if WORD_SIZE_IN_BITS == 64
</span><span class="hs-comment">-- these RULES are valid for Word==Word64</span><span>
</span><span id="line-1128"></span><span class="hs-pragma">{-# RULES</span><span>
</span><span id="line-1129"></span><span class="annot"><span class="hs-pragma">&quot;fromIntegral/Natural-&gt;Word64&quot;</span></span><span>
</span><span id="line-1130"></span><span>    </span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Word"><span class="hs-pragma hs-type">Word</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="GHC.Word.html#Word64"><span class="hs-pragma hs-type">Word64</span></a></span><span class="hs-pragma">)</span><span> </span><span class="annot"><a href="GHC.Base.html#."><span class="hs-pragma hs-type">.</span></a></span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Natural.html#naturalToWord"><span class="hs-pragma hs-type">naturalToWord</span></a></span><span>
</span><span id="line-1131"></span><span class="annot"><span class="hs-pragma">&quot;fromIntegral/Word64-&gt;Natural&quot;</span></span><span>
</span><span id="line-1132"></span><span>    </span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">=</span><span> </span><span class="annot"><a href="../../ghc-bignum/src/GHC.Num.Natural.html#naturalFromWord"><span class="hs-pragma hs-type">naturalFromWord</span></a></span><span> </span><span class="annot"><a href="GHC.Base.html#."><span class="hs-pragma hs-type">.</span></a></span><span> </span><span class="hs-pragma">(</span><span class="annot"><a href="GHC.Real.html#fromIntegral"><span class="hs-pragma hs-type">fromIntegral</span></a></span><span> </span><span class="hs-pragma">::</span><span> </span><span class="annot"><a href="GHC.Word.html#Word64"><span class="hs-pragma hs-type">Word64</span></a></span><span> </span><span class="hs-pragma">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Word"><span class="hs-pragma hs-type">Word</span></a></span><span class="hs-pragma">)</span><span>
</span><span id="line-1133"></span><span>  </span><span class="hs-pragma">#-}</span><span class="hs-cpp">
#endif
</span></pre></body></html>